wpaul 9f506b229f According to stdlib.h, malloc and realloc return void * but error_table.y
declares them to return char *. For some reason, this causes no problems
with the old compiler tools, but doing a 'make world' with gcc 2.6.3 in a
seperate DESTDIR got me this error:

yacc -d /usr/src/usr.bin/compile_et/error_table.y
cc -O2 -I. -I/usr/src/usr.bin/compile_et/../../lib/libcom_err   -I/mnt/usr/include -c y.tab.c -o error_table.o
In file included from /usr/src/usr.bin/compile_et/et_lex.lex.l:11,
                 from /usr/src/usr.bin/compile_et/error_table.y:233:
/mnt/usr/include/stdlib.h💯 conflicting types for `malloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `malloc'
/mnt/usr/include/stdlib.h:104: conflicting types for `realloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `realloc'
*** Error code 1

Stop.

Declaring malloc and realloc to return void * fixes this. It could be that
the new gcc is a bit more picky about these things.
1995-03-15 19:05:28 +00:00
..
1994-12-31 12:32:01 +00:00
1994-12-19 01:22:21 +00:00
1995-02-09 11:14:39 +00:00
1995-02-28 23:38:20 +00:00
1994-11-19 18:19:27 +00:00
1994-11-21 00:54:28 +00:00
1995-03-11 16:57:54 +00:00
1995-02-21 04:15:15 +00:00
1995-03-09 17:40:56 +00:00
1994-11-20 23:23:28 +00:00
1995-02-23 17:46:35 +00:00
1995-02-15 02:47:47 +00:00
1994-12-18 01:18:17 +00:00
1994-11-20 23:23:28 +00:00
1994-12-19 01:57:17 +00:00
1994-11-29 01:11:43 +00:00
1994-10-28 23:31:48 +00:00
1995-01-30 22:21:29 +00:00
1994-12-18 11:59:37 +00:00
1995-03-01 08:32:42 +00:00