64 bit fixes. in_addr_t is an uint32_t, not a u_long.

This commit is contained in:
Peter Wemm 2003-10-26 04:37:57 +00:00
parent 566214a32a
commit 7b4ef4ac04

View File

@ -95,7 +95,7 @@ int Set_address(char *addr, struct sockaddr_in *sin)
bzero((char *)sin, sizeof(struct sockaddr));
sin->sin_family = AF_INET;
if((sin->sin_addr.s_addr = inet_addr(addr)) == (u_long)-1) {
if((sin->sin_addr.s_addr = inet_addr(addr)) == (in_addr_t)-1) {
hp = gethostbyname(addr);
if (!hp) {
syslog(LOG_ERR,"unknown host %s", addr);