aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2008-03-17 17:06:33 +0000
committerGerald Combs <gerald@wireshark.org>2008-03-17 17:06:33 +0000
commit577f355e23bb3d6972dd6763d8cc5b33826f7ab6 (patch)
tree7638ecfddbee9a77dde6797674efc933e6772d4b /epan/oids.c
parent2ab2279eeb470448613be8bcd03129555c833380 (diff)
oid_get_default_mib_path() is present in libwireshark.def. Make sure it's
available even if HAVE_LIBSMI isn't defined. svn path=/trunk/; revision=24667
Diffstat (limited to 'epan/oids.c')
-rw-r--r--epan/oids.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/oids.c b/epan/oids.c
index 2881096728..b76d4c39f3 100644
--- a/epan/oids.c
+++ b/epan/oids.c
@@ -386,7 +386,7 @@ static inline oid_kind_t smikind(SmiNode* sN, oid_key_t** key_p) {
k->name = g_strdup_printf("%s.%s", oid1, oid2);
free (oid1);
free (oid2);
-
+
k->hfid = -2;
k->ft_type = typedata ? typedata->ft_type : FT_BYTES;
k->display = typedata ? typedata->display : BASE_NONE;
@@ -1025,12 +1025,12 @@ extern void oid_both_from_string(const gchar *oid_str, char** resolved_p, char**
*numeric_p = (void*)oid_subid2string(subids,subids_len);
}
-#ifdef HAVE_LIBSMI
/**
* Fetch the default OID path.
*/
extern gchar *
oid_get_default_mib_path(void) {
+#ifdef HAVE_LIBSMI
GString* path_str;
gchar *path_ret;
char *path;
@@ -1063,8 +1063,10 @@ oid_get_default_mib_path(void) {
path_ret = path_str->str;
g_string_free(path_str, FALSE);
return path_ret;
-}
+#else /* HAVE_LIBSMI */
+ return g_strdup("");
#endif
+}
#ifdef DEBUG_OIDS
char* oid_test_a2b(guint32 num_subids, guint32* subids) {