summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguy <guy>2007-09-13 17:33:54 +0000
committerguy <guy>2007-09-13 17:33:54 +0000
commit8c80c558d8412e238ae55c2c349e8b99d6ee7882 (patch)
tree14194f0ad027168c9bed863facbc54d42a2567ff
parent32217a9e0545709751994399aee22be620f8ab67 (diff)
downloadtcpdump-8c80c558d8412e238ae55c2c349e8b99d6ee7882.tar.gz
Don't declare variables in the middle of a block of code; in C89, that's
not valid.
-rw-r--r--print-rsvp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-rsvp.c b/print-rsvp.c
index 81e8fa66..07eb1108 100644
--- a/print-rsvp.c
+++ b/print-rsvp.c
@@ -17,7 +17,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-rsvp.c,v 1.33.2.14 2007-02-26 13:32:36 hannes Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-rsvp.c,v 1.33.2.15 2007-09-13 17:33:54 guy Exp $";
#endif
#ifdef HAVE_CONFIG_H
@@ -631,6 +631,8 @@ rsvp_obj_print (const u_char *tptr, const char *ident, u_int tlen) {
} bw;
u_int8_t namelen;
+ u_int action, subchannel;
+
while(tlen>=sizeof(struct rsvp_object_header)) {
/* did we capture enough for fully decoding the object header ? */
if (!TTEST2(*tptr, sizeof(struct rsvp_object_header)))
@@ -1577,8 +1579,6 @@ rsvp_obj_print (const u_char *tptr, const char *ident, u_int tlen) {
case RSVP_CTYPE_1:
if (obj_tlen < 4)
return-1;
-
- u_int action, subchannel;
action = (EXTRACT_16BITS(obj_tptr)>>8);
printf("%s Action: %s (%u), Label type: %u", ident,