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 Fix unitialized warnings that only crop up o...
details: https://anonhg.NetBSD.org/src/rev/5389b7cb10e1
branches: trunk
changeset: 582018:5389b7cb10e1
user: jmc <jmc%NetBSD.org@localhost>
date: Mon Jun 13 20:33:53 2005 +0000
description:
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 c1f87547d5b5 -r 5389b7cb10e1 sys/dist/pf/net/pf.c
--- a/sys/dist/pf/net/pf.c Mon Jun 13 20:32:58 2005 +0000
+++ b/sys/dist/pf/net/pf.c Mon Jun 13 20:33:53 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pf.c,v 1.13 2005/05/07 19:59:56 christos Exp $ */
+/* $NetBSD: pf.c,v 1.14 2005/06/13 20:33:53 jmc 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