diff options
author | peter <peter@FreeBSD.org> | 2003-10-26 04:37:57 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-26 04:37:57 +0000 |
commit | 4550cc64c2241844f8c697070065135de19e5d16 (patch) | |
tree | 2ebfdabdebeb62aef8d48177930ca5e237a75ea7 /sbin/nos-tun | |
parent | 7f6ed48f658999a5345b7e16993c1b02ba03dc1d (diff) | |
download | FreeBSD-src-4550cc64c2241844f8c697070065135de19e5d16.zip FreeBSD-src-4550cc64c2241844f8c697070065135de19e5d16.tar.gz |
64 bit fixes. in_addr_t is an uint32_t, not a u_long.
Diffstat (limited to 'sbin/nos-tun')
-rw-r--r-- | sbin/nos-tun/nos-tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/nos-tun/nos-tun.c b/sbin/nos-tun/nos-tun.c index ca868d1..b54ef72 100644 --- a/sbin/nos-tun/nos-tun.c +++ b/sbin/nos-tun/nos-tun.c @@ -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); |