From ed3734032e704b26a4dea9304f72e9fac2350e52 Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Fri, 5 Jul 2024 18:24:00 +0300 Subject: playing but not everything --- src/brr.zig | 2 -- src/main.zig | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/brr.zig b/src/brr.zig index 9c57076..bbacdd7 100644 --- a/src/brr.zig +++ b/src/brr.zig @@ -11,8 +11,6 @@ pub fn brr(allocator: std.mem.Allocator, file: [*:0]const u8) !void { return; }; - std.log.debug("file {s}", .{file}); - if (c.mpg123_open(handle, file) != c.MPG123_OK) { std.log.warn("Failed to open the file: {s}\n", .{file}); return; diff --git a/src/main.zig b/src/main.zig index 590f3b3..15df5c9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -51,7 +51,7 @@ pub fn main() !void { if (args.len == 3) { if (std.mem.eql(u8, args[1], "brr")) { - try brr.brr(std.heap.c_allocator, args[2]); + try brr.brr(allocator, args[2]); return; } } -- cgit 1.4.1-2-gfad0