Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add missing parentheses, found by cppcheck and r...



details:   https://anonhg.NetBSD.org/src/rev/bd203f433c0b
branches:  trunk
changeset: 751368:bd203f433c0b
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Feb 02 14:57:45 2010 +0000

description:
Add missing parentheses, found by cppcheck and reported by
Henning Petersen in PR 42718.

diffstat:

 sys/dev/pci/if_de.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c3d6e87e1c81 -r bd203f433c0b sys/dev/pci/if_de.c
--- a/sys/dev/pci/if_de.c       Tue Feb 02 14:13:16 2010 +0000
+++ b/sys/dev/pci/if_de.c       Tue Feb 02 14:57:45 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_de.c,v 1.135 2010/01/19 22:07:00 pooka Exp $        */
+/*     $NetBSD: if_de.c,v 1.136 2010/02/02 14:57:45 wiz Exp $  */
 
 /*-
  * Copyright (c) 1994-1997 Matt Thomas (matt%3am-software.com@localhost)
@@ -37,7 +37,7 @@
  *   board which support 21040, 21041, or 21140 (mostly).
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.135 2010/01/19 22:07:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.136 2010/02/02 14:57:45 wiz Exp $");
 
 #define        TULIP_HDR_DATA
 
@@ -3760,7 +3760,7 @@
 #if defined(__NetBSD__)
                (*ifp->if_input)(ifp, ms);
 #else
-               m_adj(ms, sizeof(struct ether_header);
+               m_adj(ms, sizeof(struct ether_header));
                ether_input(ifp, &eh, ms);
 #endif /* __NetBSD__ */
 #else
@@ -3774,7 +3774,7 @@
 #if defined(__NetBSD__)
                (*ifp->if_input)(ifp, m0);
 #else
-               m_adj(m0, sizeof(struct ether_header);
+               m_adj(m0, sizeof(struct ether_header));
                ether_input(ifp, &eh, m0);
 #endif /* __NetBSD__ */
                m0 = ms;



Home | Main Index | Thread Index | Old Index