From 4cf0965e67b7901ce372f9a41e815d99b3d69902 Mon Sep 17 00:00:00 2001 From: lego 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17252 f5534014-38df-0310-8fa8-9805f1628bb7 --- tap-bootpstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tap-bootpstat.c') diff --git a/tap-bootpstat.c b/tap-bootpstat.c index 10a3d11aac..e4092771ed 100644 --- a/tap-bootpstat.c +++ b/tap-bootpstat.c @@ -137,7 +137,7 @@ dhcpstat_draw(void *psp) /* When called, this function will create a new instance of tap-boopstat. */ static void -dhcpstat_init(const char *optarg) +dhcpstat_init(const char *optarg, void* userdata _U_) { dhcpstat_t *sp; const char *filter=NULL; @@ -182,6 +182,6 @@ dhcpstat_init(const char *optarg) void register_tap_listener_gtkdhcpstat(void) { - register_stat_cmd_arg("bootp,stat,", dhcpstat_init); + register_stat_cmd_arg("bootp,stat,", dhcpstat_init,NULL); } -- cgit v1.2.3