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-stats_tree.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-stats_tree.c')
-rw-r--r-- | tap-stats_tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tap-stats_tree.c b/tap-stats_tree.c index c7996fd80d..c6e1aeccac 100644 --- a/tap-stats_tree.c +++ b/tap-stats_tree.c @@ -69,7 +69,7 @@ static void draw_stats_tree(void *psp) { } -static void init_stats_tree(const char *optarg) { +static void init_stats_tree(const char *optarg,void* userdata _U_) { guint8* abbr = stats_tree_get_abbr(optarg); GString *error_string; stats_tree_cfg *cfg = NULL; @@ -92,7 +92,7 @@ static void init_stats_tree(const char *optarg) { g_free(abbr); } else { - report_failure("could not obtain stats_tree abbr (%s) from optarg '%s'",abbr,optarg); + report_failure("could not obtain stats_tree abbr (%s) from grg '%s'",abbr,optarg); return; } @@ -118,7 +118,7 @@ void register_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_) { cfg->pr = g_malloc(sizeof(tree_cfg_pres)); cfg->pr->init_string = g_strdup_printf("%s,tree",cfg->abbr); - register_stat_cmd_arg(cfg->pr->init_string, init_stats_tree); + register_stat_cmd_arg(cfg->pr->init_string, init_stats_tree, NULL); } |