Add newline to end of file to quiten compiler warning.
[metze/wireshark/wip.git] / tap-gsm_astat.c
index 91895d9f3a48ec745550f1ba56804f6ad7387e09..3d90d7c45dd0159d49e3c8f37060869224f0964d 100644 (file)
@@ -42,6 +42,7 @@
 #include "epan/packet_info.h"
 #include "epan/value_string.h"
 #include <epan/tap.h>
+#include <epan/stat_cmd_args.h>
 #include <epan/dissectors/packet-bssap.h>
 #include <epan/dissectors/packet-gsm_a.h>
 #include "register.h"
@@ -269,14 +270,11 @@ gsm_a_stat_draw(
 
 
 static void
-gsm_a_stat_init(char *optarg)
+gsm_a_stat_init(const char *optarg _U_)
 {
     gsm_a_stat_t       *stat_p;
     GString            *err_p;
 
-
-    optarg = optarg;
-
     stat_p = g_malloc(sizeof(gsm_a_stat_t));
 
     memset(stat_p, 0, sizeof(gsm_a_stat_t));
@@ -300,5 +298,5 @@ gsm_a_stat_init(char *optarg)
 void
 register_tap_listener_gsm_astat(void)
 {
-    register_ethereal_tap("gsm_a,", gsm_a_stat_init);
+    register_stat_cmd_arg("gsm_a,", gsm_a_stat_init);
 }