From 8fc6e31567057ca39466a34b63917f6f22f2c288 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 8 Feb 2018 20:46:12 -0500 Subject: [PATCH] std: fix return type of std.c.write --- std/c/index.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/c/index.zig b/std/c/index.zig index 7b34ccea8..24e24dc3d 100644 --- a/std/c/index.zig +++ b/std/c/index.zig @@ -20,7 +20,7 @@ pub extern "c" fn open(path: &const u8, oflag: c_int, ...) c_int; pub extern "c" fn raise(sig: c_int) c_int; pub extern "c" fn read(fd: c_int, buf: &c_void, nbyte: usize) isize; pub extern "c" fn stat(noalias path: &const u8, noalias buf: &Stat) c_int; -pub extern "c" fn write(fd: c_int, buf: &const c_void, nbyte: usize) c_int; +pub extern "c" fn write(fd: c_int, buf: &const c_void, nbyte: usize) isize; pub extern "c" fn mmap(addr: ?&c_void, len: usize, prot: c_int, flags: c_int, fd: c_int, offset: isize) ?&c_void; pub extern "c" fn munmap(addr: &c_void, len: usize) c_int;