From: Richard Kenner Date: Sun, 5 Nov 1995 16:05:35 +0000 (-0500) Subject: (malloc.h): Fix return type of {m,re}alloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cd03bddfc5b9f9128888056685ace46ae408f22;p=gcc.git (malloc.h): Fix return type of {m,re}alloc. From-SVN: r10557 --- diff --git a/gcc/fixincludes b/gcc/fixincludes index 6c2d157454a..333e6a39955 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -932,6 +932,7 @@ if [ -r ${LIB}/$file ]; then fi # Fix return type of free and {c,m,re}alloc in on SunOS 4.1. +# Also fix return type of {m,re}alloc in on sysV68 file=malloc.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" @@ -943,6 +944,8 @@ if [ -r ${LIB}/$file ]; then echo Fixing $file sed -e 's/typedef[ ]char \* malloc_t/typedef void \* malloc_t/g' \ -e 's/int[ ][ ]*free/void free/g' \ + -e 's/char\([ ]*\*[ ]*malloc\)/void\1/g' \ + -e 's/char\([ ]*\*[ ]*realloc\)/void\1/g' \ ${LIB}/$file > ${LIB}/${file}.sed rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file if cmp $file ${LIB}/$file >/dev/null 2>&1; then