X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fgmalloc.c;h=a65e78edca2529129cd4c5d4a15b6dc274042e09;hb=4722bc54af41d050cb2bf24670d152f3fb0547b7;hp=735847208c2d251ff09453321b7a205023ad1225;hpb=2fd9701a4f902054649dde9143a3f77809afee8f;p=chise%2Fxemacs-chise.git.1 diff --git a/src/gmalloc.c b/src/gmalloc.c index 7358472..a65e78e 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -1036,7 +1036,7 @@ realloc (__ptr_t ptr, __malloc_size_t size) int type; __malloc_size_t block, blocks, oldlimit; - if (PURE_DATA(ptr)) + if (PURE_DATA (ptr)) { result = malloc (size); memcpy(result, ptr, size); @@ -1232,23 +1232,9 @@ extern __ptr_t __sbrk __P ((int increment)); and return the start of data space, or NULL on errors. If INCREMENT is negative, shrink data space. */ __ptr_t -__default_morecore ( -#ifdef __STDC__ - ptrdiff_t increment -#else -#ifdef OSF1 - long increment -#else - int increment -#endif -#endif - ) +__default_morecore (ptrdiff_t increment) { -#ifdef OSF1 - __ptr_t result = (__ptr_t) __sbrk ((ssize_t) increment); -#else - __ptr_t result = (__ptr_t) __sbrk ((int) increment); -#endif + __ptr_t result = (__ptr_t) __sbrk (increment); if (result == (__ptr_t) -1) return NULL; return result;