Fix compilation of epan/oids.c without HAVE_LIBSMI

svn path=/trunk/; revision=43583
This commit is contained in:
Jakub Zawadzki 2012-07-06 07:24:22 +00:00
parent a22526df74
commit 500018d4f6
1 changed files with 3 additions and 7 deletions

View File

@ -720,6 +720,7 @@ static void register_mibs(void) {
void oid_pref_init(module_t *nameres)
{
#ifdef HAVE_LIBSMI
static uat_field_t smi_fields[] = {
UAT_FLD_CSTRING(smi_mod,name,"Module name","The module's name"),
UAT_END_FIELDS
@ -729,7 +730,6 @@ void oid_pref_init(module_t *nameres)
UAT_END_FIELDS
};
#ifdef HAVE_LIBSMI
prefs_register_bool_preference(nameres, "load_smi_modules",
"Enable OID resolution",
"You must restart Wireshark for this change to take effect",
@ -798,23 +798,19 @@ void oid_pref_init(module_t *nameres)
}
void oids_init(void) {
if (load_smi_modules) {
#ifdef HAVE_LIBSMI
register_mibs();
#else
D(1,("libsmi disabled oid resolution not enabled"));
#endif
}
}
void oids_cleanup(void) {
if (load_smi_modules) {
#ifdef HAVE_LIBSMI
unregister_mibs();
unregister_mibs();
#else
D(1,("libsmi disabled oid resolution not enabled"));
D(1,("libsmi disabled oid resolution not enabled"));
#endif
}
}
const char* oid_subid2string(guint32* subids, guint len) {