From fcf7b3789cec5595880d27e0109387e2d8733b38 Mon Sep 17 00:00:00 2001 From: Luis Ontanon Date: Sat, 11 Feb 2006 13:05:24 +0000 Subject: add an userdata argument to register_stat_cmd_arg() and its callback to use the callback for multiple registrations. svn path=/trunk/; revision=17252 --- tap-sctpchunkstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tap-sctpchunkstat.c') diff --git a/tap-sctpchunkstat.c b/tap-sctpchunkstat.c index c5b61fb68b..d27afa8391 100644 --- a/tap-sctpchunkstat.c +++ b/tap-sctpchunkstat.c @@ -220,7 +220,7 @@ sctpstat_draw(void *phs) static void -sctpstat_init(const char *optarg) +sctpstat_init(const char *optarg, void* userdata _U_) { sctpstat_t *hs; const char *filter=NULL; @@ -257,5 +257,5 @@ sctpstat_init(const char *optarg) void register_tap_listener_sctpstat(void) { - register_stat_cmd_arg("sctp,stat", sctpstat_init); + register_stat_cmd_arg("sctp,stat", sctpstat_init,NULL); } -- cgit v1.2.1