summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_domain.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2004-04-01 23:56:05 +0000
committertedu <tedu@openbsd.org>2004-04-01 23:56:05 +0000
commit7e1a5182bccaa7f43cc40bfa14f1ab79c209b69d (patch)
treefd3cc80b2dd436af502985784bc116bdbef65c84 /sys/kern/uipc_domain.c
parentOff by 1 ! OK millert@, tedu@ (diff)
downloadwireguard-openbsd-7e1a5182bccaa7f43cc40bfa14f1ab79c209b69d.tar.xz
wireguard-openbsd-7e1a5182bccaa7f43cc40bfa14f1ab79c209b69d.zip
use NULL for ptrs. parts from Joris Vink
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r--sys/kern/uipc_domain.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
index 74d52f8a2e8..59c9200d653 100644
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_domain.c,v 1.16 2004/02/24 21:43:55 tedu Exp $ */
+/* $OpenBSD: uipc_domain.c,v 1.17 2004/04/01 23:56:05 tedu Exp $ */
/* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */
/*
@@ -145,12 +145,12 @@ pffindtype(family, type)
for (dp = domains; dp; dp = dp->dom_next)
if (dp->dom_family == family)
goto found;
- return (0);
+ return (NULL);
found:
for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
if (pr->pr_type && pr->pr_type == type)
return (pr);
- return (0);
+ return (NULL);
}
struct protosw *
@@ -159,14 +159,14 @@ pffindproto(family, protocol, type)
{
register struct domain *dp;
register struct protosw *pr;
- struct protosw *maybe = 0;
+ struct protosw *maybe = NULL;
if (family == 0)
- return (0);
+ return (NULL);
for (dp = domains; dp; dp = dp->dom_next)
if (dp->dom_family == family)
goto found;
- return (0);
+ return (NULL);
found:
for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) {
if ((pr->pr_protocol == protocol) && (pr->pr_type == type))