diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-08 01:55:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-08 01:55:05 +0000 |
commit | 12d83302b07c2afc94a33324f4345483cb459a19 (patch) | |
tree | d57d5dfcc4360a4f3d296bf6d286c63a2aa08fae /packet-snmp.c | |
parent | 2ceb589445fb6f42659b9cd7edaaa1dc06471e4b (diff) |
If variables are used only if "HAVE_UCD_SNMP" is undefined, declare them
only if "HAVE_UCD_SNMP" is undefined.
svn path=/trunk/; revision=5117
Diffstat (limited to 'packet-snmp.c')
-rw-r--r-- | packet-snmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-snmp.c b/packet-snmp.c index 2f7f242e88..0f343e1ca1 100644 --- a/packet-snmp.c +++ b/packet-snmp.c @@ -8,7 +8,7 @@ * * See RFCs 1905, 1906, 1909, and 1910 for SNMPv2u. * - * $Id: packet-snmp.c,v 1.91 2002/04/01 21:59:59 guy Exp $ + * $Id: packet-snmp.c,v 1.92 2002/04/08 01:55:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -643,10 +643,11 @@ snmp_variable_decode(proto_tree *snmp_tree, #ifdef HAVE_UCD_SNMP struct variable_list variable; long value; -#endif /* HAVE_UCD_SNMP */ +#else /* HAVE_UCD_SNMP */ unsigned int i; gchar *buf; int len; +#endif /* HAVE_UCD_SNMP */ /* parse the type of the object */ start = asn1->offset; |