diff options
author | Gerald Combs <gerald@wireshark.org> | 2002-11-10 20:53:06 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2002-11-10 20:53:06 +0000 |
commit | 2329ea14836c0b38fc121b73a5ac3200ca5c2b86 (patch) | |
tree | 82c29d0671cbbebbdc0bef1fa5b79a4a6c608abf /tethereal.c | |
parent | f37932ff641b6d5f3c8a65e9ad1f51e1fae3c473 (diff) |
Add tethereal's tap objects to Makefile.nmake's "clean" target.
Instead of setting MIBDIRS in tethereal.c and gtk/main.c, set it in
packet-snmp.c.
svn path=/trunk/; revision=6606
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/tethereal.c b/tethereal.c index 16f6c49690..66b44e97b8 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.169 2002/11/09 00:08:42 guy Exp $ + * $Id: tethereal.c,v 1.170 2002/11/10 20:53:03 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -348,11 +348,6 @@ main(int argc, char *argv[]) #ifdef WIN32 WSADATA wsaData; - -# ifdef HAVE_SOME_SNMP - char *mib_path; -# define MIB_PATH_APPEND "\\snmp\\mibs" -# endif /* HAVE_UCD_SNMP */ #endif /* WIN32 */ char *gpf_path; @@ -809,19 +804,6 @@ main(int argc, char *argv[]) #ifdef WIN32 /* Start windows sockets */ WSAStartup( MAKEWORD( 1, 1 ), &wsaData ); - -# ifdef HAVE_SOME_SNMP - /* Set MIBDIRS so that the SNMP library can find its mibs. */ - /* XXX - Should we set MIBS or MIBFILES as well? */ - - mib_path = g_malloc (strlen(get_datafile_dir()) + strlen(MIB_PATH_APPEND) + 20); - sprintf (mib_path, "MIBDIRS=%s\\%s", get_datafile_dir(), MIB_PATH_APPEND); - /* Amazingly enough, Windows does not provide setenv(). */ - if (getenv("MIBDIRS") == NULL) - _putenv(mib_path); - g_free(mib_path); - -# endif /* HAVE_UCD_SNMP */ #endif /* WIN32 */ /* Notify all registered modules that have had any of their preferences |