From: Jeff Johnston Date: Tue, 4 Mar 2014 17:39:26 +0000 (+0000) Subject: 2014-02-27 Joey Ye X-Git-Tag: sid-snapshot-20140501~65 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=065c7717b7593baee9a4e2eefd314f6a41646d66;p=newlib-cygwin.git 2014-02-27 Joey Ye * libnosys/sbrk.c (_sbrk): Remove TWS --- diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index cd8af5f5e..29ce9c456 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,7 +1,11 @@ +2014-02-27 Joey Ye + + * libnosys/sbrk.c (_sbrk): Remove TWS + 2014-02-11 Joey Ye - * arm/syscalls.c (_sbrk): Define as weak symbols. - (_read, _write): Ditto. + * arm/syscalls.c (_sbrk): Define as weak symbols. + (_read, _write): Ditto. 2014-02-03 Richard Earnshaw diff --git a/libgloss/libnosys/sbrk.c b/libgloss/libnosys/sbrk.c index 39f411cdd..86c130ab6 100644 --- a/libgloss/libnosys/sbrk.c +++ b/libgloss/libnosys/sbrk.c @@ -6,16 +6,16 @@ void * _sbrk (incr) int incr; -{ +{ extern char end; /* Set by linker. */ - static char * heap_end; - char * prev_heap_end; + static char * heap_end; + char * prev_heap_end; if (heap_end == 0) - heap_end = & end; + heap_end = & end; - prev_heap_end = heap_end; - heap_end += incr; + prev_heap_end = heap_end; + heap_end += incr; - return (void *) prev_heap_end; -} + return (void *) prev_heap_end; +}