Squelch more const warnings (and fix some memory leaks that found).
[obnox/wireshark/wip.git] / gtk / ansi_map_stat.c
index 16bc2b76a68f5a3955bd5b2a783527d466349eae..03270be211db9d5d470c4906ecb2ceccf624f77d 100644 (file)
@@ -62,7 +62,7 @@ typedef struct column_arrows {
 
 typedef struct _my_columns_t {
     guint32            value;
-    gchar              *strptr;
+    const gchar                *strptr;
     GtkJustification   just;
 } my_columns_t;
 
@@ -267,7 +267,7 @@ ansi_map_stat_gtk_win_destroy_cb(
 static void
 ansi_map_stat_gtk_win_create(
     ansi_map_stat_dlg_t        *dlg_p,
-    char               *title)
+    const char         *title)
 {
     int                        i;
     column_arrows      *col_arrows;
@@ -366,11 +366,9 @@ ansi_map_stat_gtk_win_create(
  */
 static void
 ansi_map_stat_gtk_init(
-    char               *optarg)
+    const char         *optarg _U_)
 {
     /* does not appear to be called */
-
-    optarg = optarg;
 }
 
 
@@ -424,7 +422,7 @@ register_tap_listener_gtkansi_map_stat(void)
     GString            *err_p;
 
 
-    register_ethereal_tap("ansi_map,", ansi_map_stat_gtk_init);
+    register_tap_listener_cmd_arg("ansi_map,", ansi_map_stat_gtk_init);
 
     memset((void *) &stat, 0, sizeof(ansi_map_stat_t));
 
@@ -442,6 +440,6 @@ register_tap_listener_gtkansi_map_stat(void)
        exit(1);
     }
 
-    register_tap_menu_item("ANSI/MAP Operation", REGISTER_TAP_GROUP_NONE,
+    register_tap_menu_item("ANSI/MAP Operation", REGISTER_TAP_GROUP_TELEPHONY,
         ansi_map_stat_gtk_cb, NULL, NULL, NULL);
 }