mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-21 21:14:20 +02:00
Remove usage of std.c.stat() for xauth code
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
0a9ceca822
commit
36e220e2ff
2 changed files with 23 additions and 21 deletions
|
|
@ -540,7 +540,7 @@ pub fn main() !void {
|
|||
var format_buf: [16:0]u8 = undefined;
|
||||
var clock_buf: [32:0]u8 = undefined;
|
||||
// We need the slice/c-string returned by `bufPrintZ`.
|
||||
const format: [:0]const u8 = try std.fmt.bufPrintZ(&format_buf, "{s}{s}{s}{s}", .{
|
||||
const format = try std.fmt.bufPrintZ(&format_buf, "{s}{s}{s}{s}", .{
|
||||
if (config.bigclock_12hr) "%I" else "%H",
|
||||
":%M",
|
||||
if (config.bigclock_seconds) ":%S" else "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue