Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern compare mbuf * pointer to NULL instead of 0
details: https://anonhg.NetBSD.org/src/rev/90900db0e60f
branches: trunk
changeset: 337899:90900db0e60f
user: rtr <rtr%NetBSD.org@localhost>
date: Sat May 02 23:46:04 2015 +0000
description:
compare mbuf * pointer to NULL instead of 0
diffstat:
sys/kern/uipc_socket.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r adaa40f2a0a7 -r 90900db0e60f sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c Sat May 02 23:21:40 2015 +0000
+++ b/sys/kern/uipc_socket.c Sat May 02 23:46:04 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket.c,v 1.242 2015/05/02 21:15:33 rtr Exp $ */
+/* $NetBSD: uipc_socket.c,v 1.243 2015/05/02 23:46:04 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.242 2015/05/02 21:15:33 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.243 2015/05/02 23:46:04 rtr Exp $");
#include "opt_compat_netbsd.h"
#include "opt_sock_counters.h"
@@ -941,7 +941,7 @@
error = ENOTCONN;
goto release;
}
- } else if (addr == 0) {
+ } else if (NULL == addr) {
error = EDESTADDRREQ;
goto release;
}
Home |
Main Index |
Thread Index |
Old Index