diff options
author | glebius <glebius@FreeBSD.org> | 2005-03-20 14:31:45 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-03-20 14:31:45 +0000 |
commit | d2dabbb47c8d50184a56c2752808210c1b192343 (patch) | |
tree | bf550d4c028941192ea9a61afb5ad7d2e1638243 /sys/netinet | |
parent | a0488b02202fad7c12b3c512e94b59e6cc92d46c (diff) | |
download | FreeBSD-src-d2dabbb47c8d50184a56c2752808210c1b192343.zip FreeBSD-src-d2dabbb47c8d50184a56c2752808210c1b192343.tar.gz |
ifma_protospec is a pointer. Use NULL when assigning or compating it.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c index f7c49a0..6c7893c 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -958,7 +958,7 @@ in_addmulti(ap, ifp) * If ifma->ifma_protospec is null, then if_addmulti() created * a new record. Otherwise, we are done. */ - if (ifma->ifma_protospec != 0) { + if (ifma->ifma_protospec != NULL) { splx(s); return ifma->ifma_protospec; } @@ -1006,7 +1006,7 @@ in_delmulti(inm) * the interface and nuke the packet. */ my_inm = *inm ; - ifma->ifma_protospec = 0; + ifma->ifma_protospec = NULL; LIST_REMOVE(inm, inm_link); free(inm, M_IPMADDR); } |