diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-11-20 16:17:43 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-11-20 16:17:43 +0000 |
commit | eab4d35141bd9f308cd4fb1d45ccf953c5c4f757 (patch) | |
tree | f69944b88316422cb5079768d52c99e34fdea04a | |
parent | c24e26da427da32795e96589a3b761ba35f62233 (diff) |
next_pd and next_offset are used only if HAVE_PLUGINS is #defined.
Therefore, declare these 2 variables only if HAVE_PLUGINS is #defined.
svn path=/trunk/; revision=2678
-rw-r--r-- | packet-tcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index 090cf3974e..3a74586d6c 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.89 2000/11/19 08:54:09 guy Exp $ + * $Id: packet-tcp.c,v 1.90 2000/11/20 16:17:43 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -380,8 +380,10 @@ decode_tcp_ports(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int src_port, int dst_port) { tvbuff_t *next_tvb; +#ifdef HAVE_PLUGINS const u_char *next_pd; int next_offset; +#endif next_tvb = tvb_new_subset(tvb, offset, -1, -1); |