diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-07-13 20:27:26 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2012-07-13 20:27:26 +0000 |
commit | d6c2d34f7ad6829041719ce2d8349619124f45ca (patch) | |
tree | a2b1c13e69a8cd1fcea332dc97b2452775dd3d62 /sys | |
parent | fb964aff7a98561762313880f1c3d0675725afbf (diff) |
Use NULL instead of 0 in pointer context. approvedz blambert@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index c0c7c03ae84..f23cd47cb3b 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.136 2012/05/09 06:50:55 markus Exp $ */ +/* $OpenBSD: route.c,v 1.137 2012/07/13 20:27:25 claudio Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -642,7 +642,7 @@ ifa_ifwithroute(int flags, struct sockaddr *dst, struct sockaddr *gateway, /* The gateway must be local if the same address family. */ if ((rt->rt_flags & RTF_GATEWAY) && rt_key(rt)->sa_family == dst->sa_family) - return (0); + return (NULL); if ((ifa = rt->rt_ifa) == NULL) return (NULL); } |