diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-02-11 13:05:24 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-02-11 13:05:24 +0000 |
commit | fcf7b3789cec5595880d27e0109387e2d8733b38 (patch) | |
tree | 04149b75555afc2d39791e321970f76b1bcaca38 /tap-bootpstat.c | |
parent | ca970e37571a3a39d6fc257c899ffacc25222269 (diff) |
add an userdata argument to register_stat_cmd_arg() and its callback to use the callback for multiple registrations.
svn path=/trunk/; revision=17252
Diffstat (limited to 'tap-bootpstat.c')
-rw-r--r-- | tap-bootpstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |