diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-06-07 01:25:28 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-06-07 01:25:28 +0000 |
commit | daed99d989a2ec4b7b14c32c4fb525b494d5e50b (patch) | |
tree | 03afccb52e57c6f7452ad5c7a8114f2ad103a977 /sys/netinet/tcp_usrreq.c | |
parent | 3c572239b00f312e3dbb686d3c88b48ea966186b (diff) |
Replace a bunch of == 0 with == NULL in pointer tests. Nuke some
annoying trailing, leading and embedded whitespace. No change to
.o files.
ok deraadt@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index b2edc2f4e93..52c81ee38de 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.123 2014/12/05 15:50:04 mpi Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.124 2015/06/07 01:25:27 krw Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -42,10 +42,10 @@ * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgements: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * This product includes software developed at the Information - * Technology Division, US Naval Research Laboratory. + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * This product includes software developed at the Information + * Technology Division, US Naval Research Laboratory. * 4. Neither the name of the NRL nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. @@ -161,7 +161,7 @@ tcp_usrreq(so, req, m, nam, control, p) * a (struct inpcb) pointed at by the socket, and this * structure will point at a subsidiary (struct tcpcb). */ - if (inp == 0 && req != PRU_ATTACH) { + if (inp == NULL && req != PRU_ATTACH) { error = so->so_error; if (error == 0) error = EINVAL; @@ -297,7 +297,7 @@ tcp_usrreq(so, req, m, nam, control, p) } so->so_state |= SS_CONNECTOUT; - + /* Compute window scaling to request. */ tcp_rscale(tp, sb_max); @@ -805,7 +805,7 @@ tcp_ident(void *oldp, size_t *oldlenp, void *newp, size_t newlen, int dodrop) break; #endif case AF_INET: - fin = (struct sockaddr_in *)&tir.faddr; + fin = (struct sockaddr_in *)&tir.faddr; lin = (struct sockaddr_in *)&tir.laddr; break; default: @@ -846,7 +846,7 @@ tcp_ident(void *oldp, size_t *oldlenp, void *newp, size_t newlen, int dodrop) break; #endif case AF_INET: - inp = in_pcblookup_listen(&tcbtable, + inp = in_pcblookup_listen(&tcbtable, lin->sin_addr, lin->sin_port, 0, NULL, tir.rdomain); break; } |