Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/dist/pf/net Pull up revision 1.14 (requested by peter...



details:   https://anonhg.NetBSD.org/src/rev/a2ff7df15916
branches:  netbsd-3
changeset: 576944:a2ff7df15916
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Aug 15 13:03:55 2005 +0000

description:
Pull up revision 1.14 (requested by peter in ticket #658):
Fix unitialized warnings that only crop up on m68k. XXGCC taggedd

diffstat:

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

diffs (29 lines):

diff -r 12dc1862ab7f -r a2ff7df15916 sys/dist/pf/net/pf.c
--- a/sys/dist/pf/net/pf.c      Mon Aug 15 12:42:44 2005 +0000
+++ b/sys/dist/pf/net/pf.c      Mon Aug 15 13:03:55 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pf.c,v 1.12 2005/02/14 21:27:26 peter Exp $    */
+/*     $NetBSD: pf.c,v 1.12.4.1 2005/08/15 13:03:55 tron Exp $ */
 /*     $OpenBSD: pf.c,v 1.457.2.7 2005/01/06 14:11:56 brad Exp $ */
 
 /*
@@ -2521,7 +2521,7 @@
        struct route_in6         ro6;
 #endif /* INET6 */
        struct rtentry          *rt = NULL;
-       int                      hlen;
+       int                      hlen = 0; /* XXGCC - -Wunitialized m68k */
        u_int16_t                mss = tcp_mssdflt;
 
        switch (af) {
@@ -4321,8 +4321,8 @@
     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;
-       u_int8_t         icmptype;
+       u_int16_t        icmpid = 0, *icmpsum = NULL; /* XXGCC -Wunint m68k */
+       u_int8_t         icmptype = 0;                /* XXGCC -Wunint m68k */
        int              state_icmp = 0;
 
        switch (pd->proto) {



Home | Main Index | Thread Index | Old Index