Commit 66efc1b3 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Get rid of warnings from casting a struct sockaddr* to a struct sockaddr_in*.

parent ea67ee2b
2002-09-07 Per Cederqvist <ceder@ceder.dyndns.org>
Get rid of warnings from casting a struct sockaddr* to a struct
sockaddr_in*.
* src/isc_socket.c (cast_to_sockaddr_in): New static inline
function.
(isc_getipnum): Use it, to get rid of a warning.
(isc_gethostname): Ditto.
(isc_getportnum): Ditto.
(isc_getservice): Ditto.
Use INADDR_NONE to get rid of a compiler warning.
* src/isc_udp.c (isc_mkudpaddress): Use INADDR_NONE instead of -1.
* src/isc_tcp.c (isc_mktcpaddress): Use INADDR_NONE instead of -1.
......
Supports Markdown
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