diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-18 19:24:34 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-18 19:24:34 +0000 |
commit | 38a55164c27c444b6737f48eddae29fda08dc7e1 (patch) | |
tree | a301b915e0508c04be7956a211d1242aebf7efdd | |
parent | 2d72d0d25edfd48227062c781c17cbc88da92c2b (diff) |
Only declare failure_message() if we HAVE_PLUGINS (since it's only used when that's the case).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27051 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | capinfos.c | 2 | ||||
-rw-r--r-- | editcap.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/capinfos.c b/capinfos.c index 66b0b19671..5941fffa87 100644 --- a/capinfos.c +++ b/capinfos.c @@ -267,6 +267,7 @@ usage(gboolean is_error) fprintf(output, "If no options are given, default is to display all infos\n"); } +#ifdef HAVE_PLUGINS /* * Don't report failures to load plugins because most (non-wiretap) plugins * *should* fail to load (because we're not linked against libwireshark and @@ -277,6 +278,7 @@ failure_message(const char *msg_format _U_, va_list ap _U_) { return; } +#endif int @@ -372,6 +372,7 @@ list_encap_types(void) { } } +#ifdef HAVE_PLUGINS /* * Don't report failures to load plugins because most (non-wiretap) plugins * *should* fail to load (because we're not linked against libwireshark and @@ -382,6 +383,7 @@ failure_message(const char *msg_format _U_, va_list ap _U_) { return; } +#endif int main(int argc, char *argv[]) |