This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]