summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-04-01 23:56:06 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-04-01 23:56:06 +0000
commit0dd0d415ae2fcc73a387c9da4e33a7f53b3ae348 (patch)
tree915adabeddd8c421c4fa44c64dab09027bdc7477 /sys/kern/uipc_syscalls.c
parent250e36b4b591050c7285b3eae1d16f7176a5aa83 (diff)
use NULL for ptrs. parts from Joris Vink
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r--sys/kern/uipc_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index e130c3eafb4..81f6010c492 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_syscalls.c,v 1.57 2004/01/06 04:18:18 tedu Exp $ */
+/* $OpenBSD: uipc_syscalls.c,v 1.58 2004/04/01 23:56:05 tedu Exp $ */
/* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */
/*
@@ -719,7 +719,7 @@ recvit(p, s, mp, namelenp, retsize)
if (mp->msg_name) {
socklen_t alen;
- if (from == 0)
+ if (from == NULL)
alen = 0;
else {
/* save sa_len before it is destroyed by MSG_COMPAT */
@@ -770,7 +770,7 @@ recvit(p, s, mp, namelenp, retsize)
}
#endif
len = mp->msg_controllen;
- if (len <= 0 || control == 0)
+ if (len <= 0 || control == NULL)
len = 0;
else {
struct mbuf *m = control;