Commit 1dbf1d7a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use socklen_t and inet_aton to reduce warnings and increase stability.

Provide a replacement for inet_aton for systems that only have
inet_addr.  Avoid a warning about memset.
parent a50f8232
2002-09-08 Per Cederqvist <ceder@ceder.dyndns.org>
Avoid a warning about memset.
* src/isc_wait.c: Include <string.h> if available, to get rid of a
warning generated from FD_ZERO on some platforms.
Use socklen_t and inet_aton to reduce warnings and increase
stability.
* src/isc_udp.c (isc_udp_read_fn): Changed type of len from int
to socklen_t.
(isc_mkudpaddress): Use inet_aton instead of inet_addr.
* src/isc_tcp.c (isc_tcp_accept_fn): The third argument of
accept() should be pointer to socklen_t, not pointer to int.
(isc_mktcpaddress): Use inet_aton instead of inet_addr.
* src/isc_socket.c (isc_getladdress): Changed type of len from int
to socklen_t.
(isc_getraddress): Ditto.
Provide a replacement for inet_aton for systems that only have
inet_addr.
* src/isc_compat.c: New file.
(inet_aton): New compatibility function.
* src/intern.h (inet_aton): Added a declaration if HAVE_INET_ATON
is false.
* src/Makefile.am (libisc_a_SOURCES): Added isc_compat.c.
* configure.in: Check for -lsockt and -lnsl if needed. Check for
inet_aton. Check for INADDR_NONE only if inet_aton isn't
available.
2002-09-07 Per Cederqvist <ceder@ceder.dyndns.org>
Get rid of warnings from casting a struct sockaddr* to a struct
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment