From 4c7870c21b9e645b349ddb77b091543b72c46bf5 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Thu, 23 Apr 2020 21:09:30 -0700 Subject: feat: made calling signature of interface accepting functions more reliable --- sys/libn/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/libn/io.c') diff --git a/sys/libn/io.c b/sys/libn/io.c index 7eec74e..ff64ff0 100644 --- a/sys/libn/io.c +++ b/sys/libn/io.c @@ -31,7 +31,7 @@ io·ungetbyte(Stream *s, byte c) return ungetc(c, s); } -vlong +int io·read(Stream *s, int sz, int n, void *buf) { return fread(buf, sz, n, s); @@ -61,7 +61,7 @@ io·putstring(Stream *s, string str) return fputs(str, s); } -vlong +int io·write(Stream *s, int sz, int n, void *buf) { return fwrite(buf, sz, n, s); -- cgit v1.2.1