diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-12-04 19:39:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-12-04 19:39:09 +0000 |
commit | f43601180cf39bcdb635a6deb2e6e7e271bde7a0 (patch) | |
tree | 4b3f1e54aacb5f529cb4962714b92e4f398ececb /epan/oids.c | |
parent | 0fa29bb1eab696d791e455839405702e8fafaf16 (diff) |
Only define oid_get_default_mib_path() if we have libsmi.
Explicitly mark it as having no arguments.
svn path=/trunk/; revision=23754
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/oids.c b/epan/oids.c index 49b4bc854f..b6f0d00723 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -1036,11 +1036,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() { +oid_get_default_mib_path(void) { GString* path_str; gchar *path_ret; guint i; @@ -1059,6 +1060,7 @@ oid_get_default_mib_path() { g_string_free(path_str, FALSE); return path_ret; } +#endif #ifdef DEBUG_OIDS char* oid_test_a2b(guint32 num_subids, guint32* subids) { |