summaryrefslogtreecommitdiff
path: root/ui/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-14 12:05:31 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-14 20:06:02 +0000
commit04ab731933cf231f19956665cba64742923b28e5 (patch)
tree7999134242b72c9e71c6d40605a322e8075f49e5 /ui/gtk
parent4729e13df79d8a1f17542c0f21049c13003c8374 (diff)
downloadwireshark-04ab731933cf231f19956665cba64742923b28e5.tar.gz
The registered -z parameter string shouldn't end with a comma.
If it ends with a comma, then, if you don't provide any parameters, you get a "no such -z statistic" message followed by a list of available statistics. If it doesn't end with a comma, then, if you don't provide any parameters *and* a parameter is required, you get a usage message, which is more useful - and, in many of those cases, a parameter *isn't* required. Change-Id: I81275ea41ad4611d8210ca3cb07c09f0abde58f2 Reviewed-on: https://code.wireshark.org/review/5308 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/dcerpc_stat.c2
-rw-r--r--ui/gtk/rpc_stat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/dcerpc_stat.c b/ui/gtk/dcerpc_stat.c
index 6241334186..e1fff8a179 100644
--- a/ui/gtk/dcerpc_stat.c
+++ b/ui/gtk/dcerpc_stat.c
@@ -717,7 +717,7 @@ void gtk_dcerpcstat_cb(GtkAction *action _U_, gpointer user_data _U_)
static stat_tap_ui dcerpcstat_ui = {
REGISTER_STAT_GROUP_GENERIC,
NULL,
- "dcerpc,srt,",
+ "dcerpc,srt",
gtk_dcerpcstat_init,
-1,
0,
diff --git a/ui/gtk/rpc_stat.c b/ui/gtk/rpc_stat.c
index 553a6c5433..feb15809ee 100644
--- a/ui/gtk/rpc_stat.c
+++ b/ui/gtk/rpc_stat.c
@@ -526,7 +526,7 @@ gtk_rpcstat_cb(GtkAction *action _U_, gpointer user_data _U_)
static stat_tap_ui rpcstat_ui = {
REGISTER_STAT_GROUP_GENERIC,
NULL,
- "rpc,srt,",
+ "rpc,srt",
gtk_rpcstat_init,
-1,
0,