diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-29 21:31:27 -0700 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-29 21:31:27 -0700 |
commit | 3d10b04f1ed9bf53c282081c88165951e8c32cec (patch) | |
tree | c9741dfd1ca7ac46661fe3c0f58e94f25972dd58 /libgloss/write.c | |
parent | 7ef32a98cdf74157ae734a7a833af5171585db0c (diff) | |
download | newlib-3d10b04f1ed9bf53c282081c88165951e8c32cec.zip newlib-3d10b04f1ed9bf53c282081c88165951e8c32cec.tar.gz newlib-3d10b04f1ed9bf53c282081c88165951e8c32cec.tar.bz2 |
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/write.c')
-rw-r--r-- | libgloss/write.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgloss/write.c b/libgloss/write.c index 28b7ea3..80bcd4a 100644 --- a/libgloss/write.c +++ b/libgloss/write.c @@ -23,10 +23,11 @@ extern int outbyte (char x); */ int write (int fd, - char *buf, - int nbytes) + const void *buf_, + size_t nbytes) { int i; + const char *buf = buf_; for (i = 0; i < nbytes; i++) { if (*(buf + i) == '\n') { |