Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Remove superfluous cast of a pointer to void *.
details: https://anonhg.NetBSD.org/src/rev/cdda1cea799d
branches: trunk
changeset: 749804:cdda1cea799d
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Dec 09 00:45:25 2009 +0000
description:
Remove superfluous cast of a pointer to void *.
Compare a pointer with NULL, not 0.
No functional change intended.
diffstat:
sys/netinet/raw_ip.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r da6e29e39581 -r cdda1cea799d sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c Wed Dec 09 00:44:26 2009 +0000
+++ b/sys/netinet/raw_ip.c Wed Dec 09 00:45:25 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip.c,v 1.110 2009/09/16 15:23:05 pooka Exp $ */
+/* $NetBSD: raw_ip.c,v 1.111 2009/12/09 00:45:25 dyoung Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.110 2009/09/16 15:23:05 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.111 2009/12/09 00:45:25 dyoung Exp $");
#include "opt_inet.h"
#include "opt_compat_netbsd.h"
@@ -534,8 +534,7 @@
#endif
if (req == PRU_CONTROL)
- return (in_control(so, (long)m, (void *)nam,
- (struct ifnet *)control, l));
+ return in_control(so, (long)m, nam, (struct ifnet *)control, l);
s = splsoftnet();
@@ -554,7 +553,7 @@
if (req != PRU_SEND && req != PRU_SENDOOB && control)
panic("rip_usrreq: unexpected control mbuf");
#endif
- if (inp == 0 && req != PRU_ATTACH) {
+ if (inp == NULL && req != PRU_ATTACH) {
error = EINVAL;
goto release;
}
Home |
Main Index |
Thread Index |
Old Index