diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-30 07:31:27 +0300 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-30 07:31:27 +0300 |
commit | 3d10b04f1ed9bf53c282081c88165951e8c32cec (patch) | |
tree | c9741dfd1ca7ac46661fe3c0f58e94f25972dd58 /libgloss/read.c | |
parent | 7ef32a98cdf74157ae734a7a833af5171585db0c (diff) |
Fix various c99/gcc-14 issues in generic libgloss code
Similar to what's been done in the ports, but this time in generic code.
Add missing #includes to pick up prototypes. Add prototypes for various
internal functions where needed. Fix signatures of various functions to match
what's provided by the headers (read, sbrk, write, unlink).
Nearly done with this effort ;-)
Pushed to the trunk,
Diffstat (limited to 'libgloss/read.c')
-rw-r--r-- | libgloss/read.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgloss/read.c b/libgloss/read.c index 24108ce0d..83a3b549b 100644 --- a/libgloss/read.c +++ b/libgloss/read.c @@ -22,10 +22,11 @@ extern char inbyte (void); */ int read (int fd, - char *buf, - int nbytes) + void *buf_, + size_t nbytes) { int i = 0; + char *buf = buf_; for (i = 0; i < nbytes; i++) { *(buf + i) = inbyte(); |