quiet compiler complaint about comparing &v against NULL
This commit is contained in:
parent
3fc56656a6
commit
0c80179c55
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user