Make "reinit_x25_hashtable()" static (it's not explicitly called from
outside "packet-x25.c", it's only registered as a protocol init routine), and explicitly declare it as taking no arguments (GCC doesn't complain about passing a pointer to a routine with an unspecified argument list to "register_init_routine()", which expects a pointer to a routine with no arguments, but Microsoft Visual C{++} 6.0 does complain about it). svn path=/trunk/; revision=1664
This commit is contained in:
parent
ca9d89b2ba
commit
ea443c8965
|
@ -2,7 +2,7 @@
|
|||
* Routines for x25 packet disassembly
|
||||
* Olivier Abad <abad@daba.dhis.net>
|
||||
*
|
||||
* $Id: packet-x25.c,v 1.20 2000/02/19 14:00:35 oabad Exp $
|
||||
* $Id: packet-x25.c,v 1.21 2000/02/22 07:42:49 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -200,8 +200,8 @@ free_vc_info(vc_info *pt)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
reinit_x25_hashtable()
|
||||
static void
|
||||
reinit_x25_hashtable(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* packet-x25.h
|
||||
*
|
||||
* $Id: packet-x25.h,v 1.2 2000/02/18 13:41:26 oabad Exp $
|
||||
* $Id: packet-x25.h,v 1.3 2000/02/22 07:42:50 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -24,4 +24,3 @@
|
|||
|
||||
|
||||
void dissect_x25(const u_char *, int, frame_data *, proto_tree *);
|
||||
extern void reinit_x25_hashtable();
|
||||
|
|
Loading…
Reference in New Issue