diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-12-31 04:09:33 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-12-31 04:09:33 +0000 |
commit | 8bbfae4b2e1220379bf8b09052ee0135c6068ee1 (patch) | |
tree | 402713a556204d95854bcfddc8e41aa4be0ce90a /sys/net/if.c | |
parent | 29e9595a09aaf4d43111290a3db367783669dadc (diff) |
NULL is not 0
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 71209100153..fe46db122a6 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.14 1997/07/11 23:43:00 provos Exp $ */ +/* $OpenBSD: if.c,v 1.15 1997/12/31 04:09:32 mickey Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -181,7 +181,7 @@ ifa_ifwithaddr(addr) equal(ifa->ifa_broadaddr, addr)) return (ifa); } - return ((struct ifaddr *)0); + return (NULL); } /* * Locate the point to point interface with a given destination address. @@ -203,7 +203,7 @@ ifa_ifwithdstaddr(addr) if (equal(addr, ifa->ifa_dstaddr)) return (ifa); } - return ((struct ifaddr *)0); + return (NULL); } /* @@ -263,7 +263,7 @@ ifa_ifwithaf(af) for (ifa = ifp->if_addrlist.tqh_first; ifa != 0; ifa = ifa->ifa_list.tqe_next) if (ifa->ifa_addr->sa_family == af) return (ifa); - return ((struct ifaddr *)0); + return (NULL); } /* @@ -282,7 +282,7 @@ ifaof_ifpforaddr(addr, ifp) u_int af = addr->sa_family; if (af >= AF_MAX) - return (0); + return (NULL); for (ifa = ifp->if_addrlist.tqh_first; ifa != 0; ifa = ifa->ifa_list.tqe_next) { if (ifa->ifa_addr->sa_family != af) continue; |