aboutsummaryrefslogtreecommitdiffstats
path: root/src/control.zig
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-09-22 15:30:57 +0000
committers-ol <s+removethis@s-ol.nu>2025-09-22 15:30:57 +0000
commitbe392e7bee927065e22bac70312c005af11d7bcd (patch)
tree1a673c9e1b3a36eacb31affd8851fdd841ebce06 /src/control.zig
parentTSVSource: fix initialization in thread (diff)
downloadglsl-view-be392e7bee927065e22bac70312c005af11d7bcd.tar.gz
glsl-view-be392e7bee927065e22bac70312c005af11d7bcd.zip
update for Zig 0.15.1
Diffstat (limited to 'src/control.zig')
-rw-r--r--src/control.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control.zig b/src/control.zig
index 10aa43c..f547a4b 100644
--- a/src/control.zig
+++ b/src/control.zig
@@ -1,5 +1,5 @@
const std = @import("std");
-const c = @import("c.zig");
+const c = @import("c.zig").c;
const gl = @import("gl.zig");
const src = @import("source.zig");
const cfg = @import("config.zig");
@@ -160,7 +160,7 @@ pub const ControlServer = struct {
argc: c_int,
msg: c.lo_message,
userdata: ?*anyopaque,
- ) callconv(.C) c_int {
+ ) callconv(.c) c_int {
const i_self: *Self = @ptrCast(@alignCast(userdata.?));
const i_path = std.mem.span(_path.?);
const i_types = std.mem.span(_types.?);
@@ -199,7 +199,7 @@ pub const ControlServer = struct {
self.sources.deinit();
}
- fn handle_error(num: c_int, msg: [*c]const u8, where: [*c]const u8) callconv(.C) void {
+ fn handle_error(num: c_int, msg: [*c]const u8, where: [*c]const u8) callconv(.c) void {
std.debug.print(
"OSC error {} @ {?s}: {?s}\n",
.{ num, @as(?[*:0]const u8, @ptrCast(where)), @as(?[*:0]const u8, @ptrCast(msg)) },