forked from osmocom/wireshark
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
This commit is contained in:
parent
d06dd8a3e9
commit
2bb321d981
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue