diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-15 15:46:41 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-15 15:46:41 +0000 |
commit | 99d628d577710a8236fd8cfca76bad9eb43b22c8 (patch) | |
tree | 4a79a438a4050cb2587d8b164209b03fac85a9d6 /sys/netinet/udp_usrreq.c | |
parent | 915c6043b06c1ef2afd4660e18a18d0ed434333d (diff) | |
download | src-99d628d577710a8236fd8cfca76bad9eb43b22c8.tar.gz src-99d628d577710a8236fd8cfca76bad9eb43b22c8.zip |
netinet: for pointers replace 0 with NULL.
These are mostly cosmetical, no functional change.
Found with devel/coccinelle.
Reviewed by: ae. tuexen
Notes
Notes:
svn path=/head/; revision=298066
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 56aa56f5da0a..fdc2e76dbcfb 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -308,7 +308,7 @@ udp_append(struct inpcb *inp, struct ip *ip, struct mbuf *n, int off, { struct sockaddr *append_sa; struct socket *so; - struct mbuf *opts = 0; + struct mbuf *opts = NULL; #ifdef INET6 struct sockaddr_in6 udp_in6; #endif @@ -856,7 +856,7 @@ udp_pcblist(SYSCTL_HANDLER_ARGS) return (error); inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK); - if (inp_list == 0) + if (inp_list == NULL) return (ENOMEM); INP_INFO_RLOCK(&V_udbinfo); |