aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smpp.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2009-02-10 03:54:55 +0000
committerUlf Lamping <ulf.lamping@web.de>2009-02-10 03:54:55 +0000
commitf904f42f9da356bcc70377046c7f6617e5bcba4b (patch)
tree3b043a447bd4dd271a3877bdbcd0773a3cde939c /epan/dissectors/packet-smpp.c
parentba78d5f30e5a6f3873fcec88fc95ae3ce320a76a (diff)
downloadwireshark-f904f42f9da356bcc70377046c7f6617e5bcba4b.tar.gz
wireshark-f904f42f9da356bcc70377046c7f6617e5bcba4b.tar.bz2
wireshark-f904f42f9da356bcc70377046c7f6617e5bcba4b.zip
Remove an ugly hack:
There was an ugly hack while creating the menu, that tried to detect the stat_group a stats_tree belongs to by looking at the name string. That makes it unnecessarily hard to understand how the menu is really created. Fix: Add a new function stats_tree_register_with_group() that takes the stat_group as a parameter. Use this function where a stats_tree doesn't fit into the default "unsorted" group. svn path=/trunk/; revision=27407
Diffstat (limited to 'epan/dissectors/packet-smpp.c')
-rw-r--r--epan/dissectors/packet-smpp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smpp.c b/epan/dissectors/packet-smpp.c
index 29347c8730..598de9c000 100644
--- a/epan/dissectors/packet-smpp.c
+++ b/epan/dissectors/packet-smpp.c
@@ -3434,6 +3434,7 @@ proto_reg_handoff_smpp(void)
DISSECTOR_ASSERT(gsm_sms_handle);
/* Tapping setup */
- stats_tree_register("smpp","smpp_commands", st_str_smpp,
- smpp_stats_tree_per_packet, smpp_stats_tree_init, NULL);
+ stats_tree_register_with_group("smpp","smpp_commands", st_str_smpp,
+ smpp_stats_tree_per_packet, smpp_stats_tree_init,
+ NULL, REGISTER_STAT_GROUP_TELEPHONY);
}