Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/serial.zig
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ pub fn flushSerialPort(port: std.Io.File, flush: Flush) !void {
const TCIFLUSH = 1;
const TCOFLUSH = 2;
const TCIOFLUSH = 3;
const tcflush = @extern(fn (c_int, c_int) c_int, .{ .name = "tcflush" });
const tcflush = @extern(*const fn (c_int, c_int) callconv(.c) c_int, .{ .name = "tcflush" });
const mode: c_int = switch (flush) {
.input => TCIFLUSH,
.output => TCOFLUSH,
Expand Down
Loading