Fix "unused local variable" warning/error if compiling without

bridge support by making variable declaration conditional.  Found
while compiling for shark.
This commit is contained in:
he 2005-02-01 12:56:30 +00:00
parent 2a8a7aabd7
commit 1c9ef2aa0a
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_gif.c,v 1.37 2005/01/31 23:49:36 kim Exp $ */
/* $NetBSD: in_gif.c,v 1.38 2005/02/01 12:56:30 he Exp $ */
/* $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
/*
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.37 2005/01/31 23:49:36 kim Exp $");
__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.38 2005/02/01 12:56:30 he Exp $");
#include "opt_inet.h"
#include "opt_iso.h"
@ -99,7 +99,9 @@ in_gif_output(ifp, family, m)
struct sockaddr_in *sin_src = (struct sockaddr_in *)sc->gif_psrc;
struct sockaddr_in *sin_dst = (struct sockaddr_in *)sc->gif_pdst;
struct ip iphdr; /* capsule IP header, host byte ordered */
#if NBRIDGE > 0
struct etherip_header eiphdr;
#endif
int proto, error;
u_int8_t tos;