Only define next_pd and next_offet if HAVE_PLUGINS is #defined, since
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 11 Jan 2001 16:27:23 +0000 (16:27 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 11 Jan 2001 16:27:23 +0000 (16:27 +0000)
that's the only time they're used.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2875 f5534014-38df-0310-8fa8-9805f1628bb7

packet-udp.c

index ee0010e79999562bf4c4587cc758b2bcf82e8f4b..f853bfeb70229f571ab1955cbd71f703ab53d1a5 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-udp.c
  * Routines for UDP packet disassembly
  *
- * $Id: packet-udp.c,v 1.84 2001/01/09 06:31:44 guy Exp $
+ * $Id: packet-udp.c,v 1.85 2001/01/11 16:27:23 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -84,8 +84,10 @@ decode_udp_ports(tvbuff_t *tvb, int offset, packet_info *pinfo,
        proto_tree *tree, int uh_sport, int uh_dport)
 {
   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);