From ea443c8965bdf1bfab9ead1b05b8b711635b65d1 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 22 Feb 2000 07:42:50 +0000 Subject: [PATCH] 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 --- packet-x25.c | 6 +++--- packet-x25.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packet-x25.c b/packet-x25.c index 2e7a88b1a4..3030bee76b 100644 --- a/packet-x25.c +++ b/packet-x25.c @@ -2,7 +2,7 @@ * Routines for x25 packet disassembly * Olivier Abad * - * $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 @@ -200,8 +200,8 @@ free_vc_info(vc_info *pt) } } -void -reinit_x25_hashtable() +static void +reinit_x25_hashtable(void) { int i; diff --git a/packet-x25.h b/packet-x25.h index 49690d5edf..da706809d4 100644 --- a/packet-x25.h +++ b/packet-x25.h @@ -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 @@ -24,4 +24,3 @@ void dissect_x25(const u_char *, int, frame_data *, proto_tree *); -extern void reinit_x25_hashtable();