Get rid of an unused variable.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 31 Mar 2002 21:38:47 +0000 (21:38 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 31 Mar 2002 21:38:47 +0000 (21:38 +0000)
#ifdef out definitions of variables used only if the #ifdef is true.

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

packet-cops.c

index 7ed153e4bde08654e9e258e34e43f51d2a636b41..c018a2bd2825874c35c118f670dd79c24ca47957 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright 2000, Heikki Vatiainen <hessu@cs.tut.fi>
  *
- * $Id: packet-cops.c,v 1.25 2002/03/12 10:40:01 guy Exp $
+ * $Id: packet-cops.c,v 1.26 2002/03/31 21:38:47 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -985,8 +985,10 @@ static int decode_cops_pr_asn1_data(tvbuff_t *tvb, guint32 offset, proto_tree *t
        int ret;
        guint cls, con, tag;
 
+#ifdef HAVE_SPRINT_VALUE
        subid_t *variable_oid;
        guint variable_oid_length;
+#endif
 
        gint32 vb_integer_value;
        guint32 vb_uinteger_value;
@@ -998,8 +1000,6 @@ static int decode_cops_pr_asn1_data(tvbuff_t *tvb, guint32 offset, proto_tree *t
 
        gchar *vb_display_string;
 
-       guint variable_length;
-
        unsigned int i;
        gchar *buf;
        int len;