minix/lib/libc/ip
Thomas Veerman a209c3ae12 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).
2011-11-14 10:07:49 +00:00
..
accept.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
addrinfo.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
bind.c Fix a ton of compiler warnings 2011-11-14 10:07:49 +00:00
connect.c - Add support for file descriptor passing to PFS. 2010-08-30 13:46:44 +00:00
dhcp_gettag.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
dhcp_settag.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
ether.h Remove those annoying $Id and $Revision tags 2010-05-31 20:00:08 +00:00
ether_line.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
ethera2n.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
ethere2a.c Remove those annoying $Id and $Revision tags 2010-05-31 20:00:08 +00:00
etherh2n.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
ethern2h.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
gai_strerror.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
getdomain.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
gethnmadr.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
gethostent.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
gethostname.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
getifaddrs.c Removed unused variables, added const where possible. 2010-04-07 11:25:51 +00:00
getnetbyaddr.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
getnetbyname.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
getnetent.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
getpeereid.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
getpeername.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
getproto.c <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00
getprotoent.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
getprotoname.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
getservent.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
getsockname.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
getsockopt.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
getsrvbyname.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
getsrvbyport.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
hton.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
inet_addr.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
inet_network.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
inet_ntoa.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
inet_ntop.c inet_ntop, contributed by Thomas Cort. 2010-07-23 09:54:47 +00:00
inet_pton.c inet_pton(), patched by Thomas Cort. 2010-07-26 14:47:10 +00:00
listen.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
Makefile.inc inet_pton(), patched by Thomas Cort. 2010-07-26 14:47:10 +00:00
memcspn.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
nameinfo.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
oneC_sum.c Remove U16_t and most other similar types. Rewrite functions to ansi-style 2010-04-21 11:05:22 +00:00
rcmd.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
recv.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
recvfrom.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
recvmsg.c - Add support for file descriptor passing to PFS. 2010-08-30 13:46:44 +00:00
res_comp.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
res_init.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
res_mkquery.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
res_query.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
res_send.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
ruserok.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
send.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
sendmsg.c - Add support for file descriptor passing to PFS. 2010-08-30 13:46:44 +00:00
sendto.c - Add support for file descriptor passing to PFS. 2010-08-30 13:46:44 +00:00
servxcheck.c lib: fixes for warnings that clang has for libraries. 2010-07-06 12:08:22 +00:00
sethostent.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
setsockopt.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
shutdown.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
socket.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
socketpair.c Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort 2010-07-15 14:05:23 +00:00
strcasecmp.c <ansi.h> -> <minix/ansi.h> 2011-01-28 11:35:02 +00:00