From: guy Date: Wed, 20 Apr 2005 21:36:09 +0000 (+0000) Subject: Get rid of an unused variable. X-Git-Tag: tcpdump-4.0.0~497 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c0f9c66c4fd998b8f59c693421002c99702bf5fb Get rid of an unused variable. --- diff --git a/print-l2tp.c b/print-l2tp.c index 7546a860..29cb4e23 100644 --- a/print-l2tp.c +++ b/print-l2tp.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-l2tp.c,v 1.17 2003-12-26 23:20:58 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-l2tp.c,v 1.18 2005-04-20 21:36:09 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -617,10 +617,10 @@ l2tp_print(const u_char *dat, u_int length) const u_int16_t *ptr = (u_int16_t *)dat; u_int cnt = 0; /* total octets consumed */ u_int16_t pad; - int flag_t, flag_l, flag_s, flag_o, flag_p; + int flag_t, flag_l, flag_s, flag_o; u_int16_t l2tp_len; - flag_t = flag_l = flag_s = flag_o = flag_p = FALSE; + flag_t = flag_l = flag_s = flag_o = FALSE; TCHECK(*ptr); /* Flags & Version */ if ((EXTRACT_16BITS(ptr) & L2TP_VERSION_MASK) == L2TP_VERSION_L2TP) { @@ -650,10 +650,8 @@ l2tp_print(const u_char *dat, u_int length) flag_o = TRUE; printf("O"); } - if (EXTRACT_16BITS(ptr) & L2TP_FLAG_PRIORITY) { - flag_p = TRUE; + if (EXTRACT_16BITS(ptr) & L2TP_FLAG_PRIORITY) printf("P"); - } printf("]"); ptr++;