Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Mark this initializer in the canonical way so it can...
details: https://anonhg.NetBSD.org/src/rev/0f432dbf3d28
branches: trunk
changeset: 554487:0f432dbf3d28
user: mycroft <mycroft%NetBSD.org@localhost>
date: Tue Oct 28 22:31:12 2003 +0000
description:
Mark this initializer in the canonical way so it can be found later.
diffstat:
sys/net/if_bridge.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 7e58177c7107 -r 0f432dbf3d28 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Tue Oct 28 22:22:28 2003 +0000
+++ b/sys/net/if_bridge.c Tue Oct 28 22:31:12 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.19 2003/10/25 18:29:12 christos Exp $ */
+/* $NetBSD: if_bridge.c,v 1.20 2003/10/28 22:31:12 mycroft Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.19 2003/10/25 18:29:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.20 2003/10/28 22:31:12 mycroft Exp $");
#include "opt_bridge_ipf.h"
#include "opt_inet.h"
@@ -1919,7 +1919,6 @@
*/
static int bridge_ipf(void *arg, struct mbuf **mp, struct ifnet *ifp, int dir)
{
-/*###1922 [cc] warning: `split2' might be used uninitialized in this function%%%*/
int snap, error, split1, split2, pktlen;
struct ether_header *eh;
struct mbuf *m1, *m2;
@@ -1988,7 +1987,7 @@
}
} else {
m2 = m1;
- split2 = 0;
+ split2 = 0; /* XXX: gcc */
}
/*
Home |
Main Index |
Thread Index |
Old Index