64 bit fixes. in_addr_t is an uint32_t, not a u_long.
This commit is contained in:
parent
566214a32a
commit
7b4ef4ac04
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user