Module Name: src
Committed By: rtr
Date: Sun May 3 04:18:45 UTC 2015
Modified Files:
src/sys/kern: uipc_socket.c
Log Message:
flip (NULL == addr) to (addr == NULL) use in conditional from previous
commit.
To generate a diff of this commit:
cvs rdiff -u -r1.243 -r1.244 src/sys/kern/uipc_socket.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/uipc_socket.c
diff -u src/sys/kern/uipc_socket.c:1.243 src/sys/kern/uipc_socket.c:1.244
--- src/sys/kern/uipc_socket.c:1.243 Sat May 2 23:46:04 2015
+++ src/sys/kern/uipc_socket.c Sun May 3 04:18:45 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket.c,v 1.243 2015/05/02 23:46:04 rtr Exp $ */
+/* $NetBSD: uipc_socket.c,v 1.244 2015/05/03 04:18:45 rtr Exp $ */
/*-
* Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.243 2015/05/02 23:46:04 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.244 2015/05/03 04:18:45 rtr Exp $");
#include "opt_compat_netbsd.h"
#include "opt_sock_counters.h"
@@ -941,7 +941,7 @@ sosend(struct socket *so, struct mbuf *a
error = ENOTCONN;
goto release;
}
- } else if (NULL == addr) {
+ } else if (addr == NULL) {
error = EDESTADDRREQ;
goto release;
}