Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <jeffreyalaw@gmail.com>2023-12-30 07:31:27 +0300
committerJeff Law <jeffreyalaw@gmail.com>2023-12-30 07:31:27 +0300
commit3d10b04f1ed9bf53c282081c88165951e8c32cec (patch)
treec9741dfd1ca7ac46661fe3c0f58e94f25972dd58 /libgloss/sbrk.c
parent7ef32a98cdf74157ae734a7a833af5171585db0c (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/sbrk.c')
-rw-r--r--libgloss/sbrk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libgloss/sbrk.c b/libgloss/sbrk.c
index c222b4bbf..d567a4a60 100644
--- a/libgloss/sbrk.c
+++ b/libgloss/sbrk.c
@@ -27,9 +27,8 @@ char *heap_ptr;
* RAM. We just increment a pointer in what's
* left of memory on the board.
*/
-char *
-sbrk (nbytes)
- int nbytes;
+void *
+sbrk (ptrdiff_t nbytes)
{
char *base;