This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[RFA]: Fix libgloss/m68hc11/syscalls.c build pb
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: newlib at sources dot redhat dot com
- Date: Sat, 19 Oct 2002 00:36:20 +0200
- Subject: [RFA]: Fix libgloss/m68hc11/syscalls.c build pb
Hi!
The sbrk() definition is not correct in m68hc11 implementation and it does not
compile any more (I guess this is because sbrk prototype was fixed in newlib <sys/unistd.h>).
Can you approve this patch?
Thanks,
Stephane
2002-10-19 Stephane Carrez <stcarrez@nerim.fr>
* m68hc11/syscalls.c (sbrk): Use ptrdiff_t for increment parameter.
Index: m68hc11/syscalls.c
===================================================================
RCS file: /cvs/src/src/libgloss/m68hc11/syscalls.c,v
retrieving revision 1.1
diff -u -p -r1.1 syscalls.c
--- m68hc11/syscalls.c 23 Jul 2002 21:56:27 -0000 1.1
+++ m68hc11/syscalls.c 18 Oct 2002 20:27:37 -0000
@@ -49,7 +49,7 @@ write(int file, const void *p, size_t le
}
void *
-sbrk(size_t incr)
+sbrk(ptrdiff_t incr)
{
extern char _end; /* Defined by the linker */
static char *heap_end;