summaryrefslogtreecommitdiff
path: root/capinfos.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-03-16 00:58:15 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-03-16 00:58:15 +0000
commitb59322ecc1c394002404ec4a559241c970fa2c9c (patch)
tree7728d6024dce5d0c471cde6cd6836c3bf53fce36 /capinfos.c
parentddca4dd583124fae2df3a35f288c134f5bc4c791 (diff)
downloadwireshark-b59322ecc1c394002404ec4a559241c970fa2c9c.tar.gz
Don't link plugins against libwireshark: any program that loads the dissector
plugins should already be linked against libwireshark. Don't link capinfos and editcap against libwireshark: they only needed to be because the plugins were linked against libwireshark (see rev 24123 and the ensuing discussion on -dev). capinfos and editcap: don't complain if plugins fail to load: dissector plugins should fail to load because they need libwireshark. I am assuming here that wiretap plugins don't need libwireshark (I've never seen such a plugin but LEGO's code and comments suggest this is the case). (The goal of this checkin is to stop linking capinfos and editcap against libwireshark while still allowing wiretap plugins. Since we don't have any such plugins in the tree I do somewhat doubt the need for all this but I don't want to be the one to remove the functionality.) svn path=/trunk/; revision=24650
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/capinfos.c b/capinfos.c
index e94a3bb18c..d9be5194d1 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -262,14 +262,14 @@ usage(gboolean is_error)
}
/*
- * Errors are reported with a console message.
+ * Don't report failures to load plugins because most (non-wiretap) plugins
+ * *should* fail to load (because we're not linked against libwireshark and
+ * dissector plugins need libwireshark).
*/
static void
-failure_message(const char *msg_format, va_list ap)
+failure_message(const char *msg_format _U_, va_list ap _U_)
{
- fprintf(stderr, "capinfos: ");
- vfprintf(stderr, msg_format, ap);
- fprintf(stderr, "\n");
+ return;
}