aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-07-07 20:29:45 +0000
committerGuy Harris <guy@alum.mit.edu>2003-07-07 20:29:45 +0000
commit2bb321d981c02c0b4955d17873a69ec39b03ef17 (patch)
tree23002071650da733cd0352ad360e33abf9a5d02e /epan/proto.c
parentd06dd8a3e933b0c2bd492930e10634972559e4af (diff)
Mark the "plugin_dir" argument to "proto_init()" as unused if we don't
have plugin support. (Don't do so if we *do* have it, because if "proto_init()" ever changes so that it doesn't use the argument even if we have plugin support, we want a warning so we know that we should get rid of that argument.) svn path=/trunk/; revision=7972
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 7bda9f5dfa..716cf0de1b 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -1,7 +1,7 @@
/* proto.c
* Routines for protocol tree
*
- * $Id: proto.c,v 1.94 2003/07/04 03:41:00 gram Exp $
+ * $Id: proto.c,v 1.95 2003/07/07 20:29:45 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -177,7 +177,12 @@ int num_tree_types;
/* initialize data structures and register protocols and fields */
void
-proto_init(const char *plugin_dir,void (register_all_protocols)(void),
+proto_init(const char *plugin_dir
+#ifndef HAVE_PLUGINS
+ _U_
+#endif
+ ,
+ void (register_all_protocols)(void),
void (register_all_protocol_handoffs)(void))
{
int id, num_symbols;