]> Zhao Yanbai Git Server - minix.git/commit
Fix a ton of compiler warnings
authorThomas Veerman <thomas@minix3.org>
Mon, 14 Nov 2011 10:07:49 +0000 (10:07 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 14 Nov 2011 10:07:49 +0000 (10:07 +0000)
commita209c3ae1296f9263ca6488a85fe5b405cfc4f7c
tree9a9f29568fff9f49454c2487b615a8029b360bdb
parent85b8fbe72b1bae35d4649184befed90c92bdb0b9
Fix a ton of compiler warnings

This patch fixes most of current reasons to generate compiler warnings.
The changes consist of:
 - adding missing casts
 - hiding or unhiding function declarations
 - including headers where missing
 - add __UNCONST when assigning a const char * to a char *
 - adding missing return statements
 - changing some types from unsigned to signed, as the code seems to want
   signed ints
 - converting old-style function definitions to current style (i.e.,
   void func(param1, param2) short param1, param2; {...} to
   void func (short param1, short param2) {...})
 - making the compiler silent about signed vs unsigned comparisons. We
   have too many of those in the new libc to fix.

A number of bugs in the test set were fixed. These bugs were never
triggered with our old libc. Consequently, these tests are now forced to
link with the new libc or they will generate errors (in particular tests 43
and 55).

Most changes in NetBSD libc are limited to moving aroudn "#ifndef __minix"
or stuff related to Minix-specific things (code in sys-minix or gen/minix).
87 files changed:
common/include/minix/devman.h
include/ctype.h
lib/libarchive/archive_entry_link_resolver.c
lib/libarchive/archive_read_support_format_tar.c
lib/libc/ansi/malloc-debug.c
lib/libc/asyn/asyn_write.c
lib/libc/ip/bind.c
lib/libdevman/generic.c
lib/libdevman/usb.c
lib/libfetch/ftp.c
lib/libminc/fputs.c
lib/libminc/malloc.c
lib/libminixfs/cache.c
lib/libminixfs/fetch_credentials.c
lib/libsys/get_randomness.c
lib/libsys/timers.c
lib/libsys/timing.c
lib/libsys/vprintf.c
lib/libusb/usb.c
lib/libutil/passwd.c
lib/libutil/pty.c
lib/libvassert/vassert.c
lib/nbsd_libc/gen/getttyent.c
lib/nbsd_libc/gen/minix/getdomainname.c
lib/nbsd_libc/gen/minix/getpass.c
lib/nbsd_libc/gen/setmode.c
lib/nbsd_libc/gen/ulimit.c
lib/nbsd_libc/locale/setlocale.c
lib/nbsd_libc/misc/stack_protector.c
lib/nbsd_libc/net/getnameinfo.c
lib/nbsd_libc/net/minix/getifaddrs.c
lib/nbsd_libc/resolv/res_send.c
lib/nbsd_libc/ssp/memcpy_chk.c
lib/nbsd_libc/ssp/memmove_chk.c
lib/nbsd_libc/ssp/memset_chk.c
lib/nbsd_libc/ssp/strcat_chk.c
lib/nbsd_libc/ssp/strcpy_chk.c
lib/nbsd_libc/ssp/strncat_chk.c
lib/nbsd_libc/ssp/strncpy_chk.c
lib/nbsd_libc/stdlib/strfmon.c
lib/nbsd_libc/string/strmode.c
lib/nbsd_libc/sys-minix/__getcwd.c
lib/nbsd_libc/sys-minix/bind.c
lib/nbsd_libc/sys-minix/getgroups.c
lib/nbsd_libc/sys-minix/getsid.c
lib/nbsd_libc/sys-minix/mount.c
lib/nbsd_libc/sys-minix/sendmsg.c
lib/nbsd_libc/sys-minix/sendto.c
lib/nbsd_libc/sys-minix/stat.c
lib/nbsd_libc/sys-minix/sysuname.c
lib/nbsd_libc/termios/tcsetattr.c
lib/nbsd_libcompat_minix/passwd.c
lib/nbsd_libm/arch/i387/fenv.c
lib/nbsd_libminlib/vm_query_exit.c
nbsd_include/sys/ctype_inline.h
nbsd_include/sys/socket.h
nbsd_include/sys/syslimits.h
nbsd_include/unistd.h
share/mk/minix.gcc.mk
test/Makefile
test/t40e.c
test/test10.c
test/test11.c
test/test17.c
test/test18.c
test/test19.c
test/test21.c
test/test25.c
test/test27.c
test/test28.c
test/test3.c
test/test42.c
test/test43.c
test/test45.c
test/test46.c
test/test47.c
test/test48.c
test/test5.c
test/test50.c
test/test52.c
test/test53.c
test/test54.c
test/test55.c
test/test56.c
test/test6.c
test/test9.c
usr.bin/mkimage/mkimage.c