diff options
author | sam <sam@FreeBSD.org> | 2008-01-10 04:26:44 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-01-10 04:26:44 +0000 |
commit | 575808ccee756679ddb86a186d40d644bdf71031 (patch) | |
tree | 4b687e1385be06950c93cde8c8b07adc473f73d4 /usr.sbin/arp | |
parent | b94bb544177a7c916787623731b2c3190c7ede6b (diff) | |
download | FreeBSD-src-575808ccee756679ddb86a186d40d644bdf71031.zip FreeBSD-src-575808ccee756679ddb86a186d40d644bdf71031.tar.gz |
quiet compiler complaint about comparing &v against NULL
Diffstat (limited to 'usr.sbin/arp')
-rw-r--r-- | usr.sbin/arp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index a4ec683..65b55ad 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -639,7 +639,7 @@ rtmsg(int cmd, struct sockaddr_inarp *dst, struct sockaddr_dl *sdl) static int seq; int rlen; int l; - struct sockaddr_in so_mask; + struct sockaddr_in so_mask, *som = &so_mask; static int s = -1; static pid_t pid; @@ -699,7 +699,7 @@ rtmsg(int cmd, struct sockaddr_inarp *dst, struct sockaddr_dl *sdl) NEXTADDR(RTA_DST, dst); NEXTADDR(RTA_GATEWAY, sdl); - NEXTADDR(RTA_NETMASK, &so_mask); + NEXTADDR(RTA_NETMASK, som); rtm->rtm_msglen = cp - (char *)&m_rtmsg; doit: |