diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-04-01 23:56:06 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-04-01 23:56:06 +0000 |
commit | 0dd0d415ae2fcc73a387c9da4e33a7f53b3ae348 (patch) | |
tree | 915adabeddd8c421c4fa44c64dab09027bdc7477 /sys/kern/uipc_syscalls.c | |
parent | 250e36b4b591050c7285b3eae1d16f7176a5aa83 (diff) |
use NULL for ptrs. parts from Joris Vink
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 6 |
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; |