Make sure the default value of a dummy variable is 0

so that it doesn't do anything.
This commit is contained in:
julian 1998-06-06 21:49:17 +00:00
parent 88b436b903
commit 4f3d4b5dd9
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);