X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=blobdiff_plain;f=gtk%2Fansi_map_stat.c;h=03270be211db9d5d470c4906ecb2ceccf624f77d;hp=16bc2b76a68f5a3955bd5b2a783527d466349eae;hb=f026752489e09f18ac113ec6482e1abb0e420646;hpb=f06298448dd4be6008e146713fda97d094f63d0f diff --git a/gtk/ansi_map_stat.c b/gtk/ansi_map_stat.c index 16bc2b76a6..03270be211 100644 --- a/gtk/ansi_map_stat.c +++ b/gtk/ansi_map_stat.c @@ -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); }