aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-10-25 03:13:11 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-10-25 03:13:11 +0000
commite1caa1c69df2144a92d442ce9733b8bfd3497c71 (patch)
treecdb01a0e0ce38c4661015c5aa4a752da2a38aa89 /tethereal.c
parent66695f75a936f102b127b4fb3741f42a7497ef17 (diff)
The versions of UCD SNMP that we now support all install
<ucd-snmp/version.h>, so get rid of the stuff to check for its presence and handle its absence. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6503 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/tethereal.c b/tethereal.c
index 8bc1f4cda4..97f9a61be9 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.164 2002/10/24 07:08:22 guy Exp $
+ * $Id: tethereal.c,v 1.165 2002/10/25 03:13:07 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -61,17 +61,15 @@
#endif
#ifdef HAVE_SOME_SNMP
+
#ifdef HAVE_NET_SNMP
#include <net-snmp/version.h>
-#else /* HAVE_NET_SNMP */
-/*
- * XXX - we no longer support old versions of UCD SNMP; do all the
- * versions we support have, and install, this header?
- */
-#ifdef HAVE_UCD_SNMP_VERSION_H
-#include <ucd-snmp/version.h>
-#endif /* HAVE_UCD_SNMP_VERSION_H */
#endif /* HAVE_NET_SNMP */
+
+#ifdef HAVE_UCD_SNMP
+#include <ucd-snmp/version.h>
+#endif /* HAVE_UCD_SNMP */
+
#endif /* HAVE_SOME_SNMP */
#ifdef NEED_STRERROR_H
@@ -449,11 +447,7 @@ main(int argc, char *argv[])
#ifdef HAVE_UCD_SNMP
g_string_append(comp_info_str, ", with UCD-SNMP ");
-#ifdef HAVE_UCD_SNMP_VERSION_H
g_string_append(comp_info_str, VersionInfo);
-#else /* HAVE_UCD_SNMP_VERSION_H */
- g_string_append(comp_info_str, "(version unknown)");
-#endif /* HAVE_UCD_SNMP_VERSION_H */
#endif /* HAVE_UCD_SNMP */
#ifdef HAVE_NET_SNMP