aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-12-18 19:24:34 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-12-18 19:24:34 +0000
commita7b7e98cb157bfd6d362dc778687959c8f942bda (patch)
treea301b915e0508c04be7956a211d1242aebf7efdd /editcap.c
parentc544c209561e2661d014eac1b3f7a2a6a67af636 (diff)
Only declare failure_message() if we HAVE_PLUGINS (since it's only used when that's the case).
svn path=/trunk/; revision=27051
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editcap.c b/editcap.c
index 88a5e16ed3..b91902cc0b 100644
--- a/editcap.c
+++ b/editcap.c
@@ -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[])