Source-Changes-HG archive

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

[src/trunk]: src/sys/dist/pf/net Cleanup XXGCC in a few places to make it eas...



details:   https://anonhg.NetBSD.org/src/rev/218dfc7d9eb1
branches:  trunk
changeset: 582049:218dfc7d9eb1
user:      jmc <jmc%NetBSD.org@localhost>
date:      Tue Jun 14 21:20:30 2005 +0000

description:
Cleanup XXGCC in a few places to make it easier to see.

diffstat:

 sys/dist/pf/net/pf.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r bddaba81f185 -r 218dfc7d9eb1 sys/dist/pf/net/pf.c
--- a/sys/dist/pf/net/pf.c      Tue Jun 14 20:47:46 2005 +0000
+++ b/sys/dist/pf/net/pf.c      Tue Jun 14 21:20:30 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pf.c,v 1.14 2005/06/13 20:33:53 jmc Exp $      */
+/*     $NetBSD: pf.c,v 1.15 2005/06/14 21:20:30 jmc Exp $      */
 /*     $OpenBSD: pf.c,v 1.457.2.7 2005/01/06 14:11:56 brad Exp $ */
 
 /*
@@ -4321,8 +4321,9 @@
     struct mbuf *m, int off, void *h, struct pf_pdesc *pd)
 {
        struct pf_addr  *saddr = pd->src, *daddr = pd->dst;
-       u_int16_t        icmpid = 0, *icmpsum = NULL; /* XXGCC -Wunint m68k */
-       u_int8_t         icmptype = 0;                /* XXGCC -Wunint m68k */
+       u_int16_t        icmpid = 0;    /* XXGCC -Wunitialized m68k */
+       u_int16_t       *icmpsum = NULL;/* XXGCC -Wunitialized m68k */
+       u_int8_t         icmptype = 0;  /* XXGCC -Wunitialized m68k */
        int              state_icmp = 0;
 
        switch (pd->proto) {



Home | Main Index | Thread Index | Old Index