diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-23 21:09:30 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-23 21:09:30 -0700 |
commit | 4c7870c21b9e645b349ddb77b091543b72c46bf5 (patch) | |
tree | f53a77257b62c7ef0729f176daa4c49c5bf57587 /sys/libn/io.c | |
parent | 1a6c99600617f069d6d167fb3d33142a07fe0936 (diff) |
feat: made calling signature of interface accepting functions more reliable
Diffstat (limited to 'sys/libn/io.c')
-rw-r--r-- | sys/libn/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |