From 4f3d4b5dd9ddb42035f886c004060ef5a2cb2b45 Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 6 Jun 1998 21:49:17 +0000 Subject: [PATCH] Make sure the default value of a dummy variable is 0 so that it doesn't do anything. --- sys/netinet/ip_input.c | 4 ++-- sys/netinet/ip_output.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 74cc67bf427d..19ceef1357c1 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.87 1998/06/06 19:39:09 julian Exp $ + * $Id: ip_input.c,v 1.88 1998/06/06 20:45:27 julian Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ @@ -368,7 +368,7 @@ tooshort: goto ours; } #else - u_int16_t dummy; + u_int16_t dummy = 0; /* If ipfw says divert, we have to just drop packet */ if ((*ip_fw_chk_ptr)(&ip, hlen, NULL, &dummy, &m)) { m_freem(m); diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index da281b468ac0..59a4416e7b38 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 - * $Id: ip_output.c,v 1.69 1998/06/06 19:39:09 julian Exp $ + * $Id: ip_output.c,v 1.70 1998/06/06 20:45:28 julian Exp $ */ #define _IP_VHL @@ -378,7 +378,7 @@ sendit: goto done; } #else - u_int16_t dummy; + u_int16_t dummy = 0; /* If ipfw says divert, we have to just drop packet */ if ((*ip_fw_chk_ptr)(&ip, hlen, ifp, &dummy, &m)) { m_freem(m);