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/d1a8ddd61542
branches:  trunk
changeset: 808041:d1a8ddd61542
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 b4e5ad644080 -r d1a8ddd61542 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