More char -> const char warning fixes.
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 5 Aug 2005 20:59:08 +0000 (20:59 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 5 Aug 2005 20:59:08 +0000 (20:59 +0000)
Removed (very few) casts that only change the warning message
  but don't remove it (with gcc-4).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15227 f5534014-38df-0310-8fa8-9805f1628bb7

124 files changed:
color_filters.c
color_filters.h
epan/packet.c
epan/packet.h
gtk/about_dlg.c
gtk/ansi_a_stat.c
gtk/ansi_map_stat.c
gtk/capture_dlg.c
gtk/capture_prefs.c
gtk/color_dlg.c
gtk/column_prefs.c
gtk/conversations_eth.c
gtk/conversations_fc.c
gtk/conversations_fddi.c
gtk/conversations_ip.c
gtk/conversations_ipx.c
gtk/conversations_jxta.c
gtk/conversations_sctp.c
gtk/conversations_table.c
gtk/conversations_table.h
gtk/conversations_tcpip.c
gtk/conversations_tr.c
gtk/conversations_udpip.c
gtk/conversations_wlan.c
gtk/decode_as_dcerpc.c
gtk/decode_as_dcerpc.h
gtk/decode_as_dlg.c
gtk/dfilter_expr_dlg.c
gtk/dlg_utils.c
gtk/dlg_utils.h
gtk/file_dlg.c
gtk/filter_dlg.c
gtk/filter_dlg.h
gtk/find_dlg.c
gtk/find_dlg.h
gtk/flow_graph.c
gtk/gsm_a_stat.c
gtk/gsm_map_stat.c
gtk/gtk_stat_util.c
gtk/gtk_stat_util.h
gtk/h225_counter.c
gtk/h225_ras_srt.c
gtk/help_dlg.c
gtk/hostlist_eth.c
gtk/hostlist_table.c
gtk/hostlist_table.h
gtk/main.c
gtk/menu.c
gtk/menu.h
gtk/packet_list.c
gtk/plugins_dlg.c
gtk/print_dlg.c
gtk/proto_dlg.c
gtk/proto_draw.c
gtk/proto_hier_stats_dlg.c
gtk/recent.c
gtk/sctp_error_dlg.c
gtk/sctp_stat.h
gtk/service_response_time_table.c
gtk/tap_menu.h
gtk/ui_util.c
gtk/ui_util.h
gtk/voip_calls.c
gtk/voip_calls.h
image/dn_arrow.xpm
image/eexcl3d64.xpm
image/eicon3d16.xpm
image/eicon3d32.xpm
image/eicon3d48.xpm
image/icon-ethereal.xpm
image/icon-excl.xpm
image/stock_dialog_error_48.xpm
image/stock_dialog_info_48.xpm
image/stock_dialog_question_48.xpm
image/stock_dialog_warning_48.xpm
image/toolbar/autoscroll_24.xpm
image/toolbar/capture_filter_24.xpm
image/toolbar/capture_interfaces_24.xpm
image/toolbar/capture_options_24.xpm
image/toolbar/capture_restart_24.xpm
image/toolbar/capture_start_24.xpm
image/toolbar/capture_stop_24.xpm
image/toolbar/checkbox_16.xpm
image/toolbar/colorize_24.xpm
image/toolbar/conversations_16.xpm
image/toolbar/decode_as_16.xpm
image/toolbar/display_filter_24.xpm
image/toolbar/endpoints_16.xpm
image/toolbar/file_set_list_16.xpm
image/toolbar/file_set_next_16.xpm
image/toolbar/file_set_previous_16.xpm
image/toolbar/graphs_16.xpm
image/toolbar/internet_24.xpm
image/toolbar/resize_columns_24.xpm
image/toolbar/stock_add_24.xpm
image/toolbar/stock_bottom_24.xpm
image/toolbar/stock_clear_24.xpm
image/toolbar/stock_close_24.xpm
image/toolbar/stock_colorselector_24.xpm
image/toolbar/stock_help_24.xpm
image/toolbar/stock_jump_to_24.xpm
image/toolbar/stock_left_arrow_24.xpm
image/toolbar/stock_ok_20.xpm
image/toolbar/stock_open_24.xpm
image/toolbar/stock_preferences_24.xpm
image/toolbar/stock_print_24.xpm
image/toolbar/stock_properties_24.xpm
image/toolbar/stock_refresh_24.xpm
image/toolbar/stock_right_arrow_24.xpm
image/toolbar/stock_save_24.xpm
image/toolbar/stock_save_as_24.xpm
image/toolbar/stock_search_24.xpm
image/toolbar/stock_stop_24.xpm
image/toolbar/stock_top_24.xpm
image/toolbar/stock_zoom_1_24.xpm
image/toolbar/stock_zoom_in_24.xpm
image/toolbar/stock_zoom_out_24.xpm
image/toolbar/telephony_16.xpm
image/toolbar/time_24.xpm
image/toolbar/web_support_24.xpm
image/toolbar/wiki_24.xpm
image/up_arrow.xpm
plugins/stats_tree/pinfo_stats_tree.c
tap_dfilter_dlg.h

index ef72946dcd409a32dd77e799d27110fd80f2d1c9..ff8d43339aea486502ddac01c2ef0f8b908c2832 100644 (file)
@@ -111,8 +111,8 @@ color_filters_init(void)
 
 /* Create a new filter */
 color_filter_t *
-color_filter_new(gchar *name,          /* The name of the filter to create */
-                 gchar *filter_string, /* The string representing the filter */
+color_filter_new(const gchar *name,    /* The name of the filter to create */
+                 const gchar *filter_string, /* The string representing the filter */
                  color_t *bg_color,    /* The background color */
                  color_t *fg_color)    /* The foreground color */
 {
index 46646d05b6f885adf4df36a3580416699f2fe154..17ab753e0802129639147e98862bd00f7deb8bde 100644 (file)
@@ -108,7 +108,7 @@ color_filters_colorize_packet(gint row, epan_dissect_t *edt);
  * @param fg_color foreground color
  * @return the new color filter
  */
-color_filter_t *color_filter_new(gchar *name, gchar *filter_string,
+color_filter_t *color_filter_new(const gchar *name, const gchar *filter_string,
     color_t *bg_color, color_t *fg_color);
 
 /** Remove the color filter.
index ca7b44410caab61b1b22d364be8533f64116aca7..e9c691b35bec911624ed91d2adf2e58e7b95b662 100644 (file)
@@ -1261,7 +1261,7 @@ dissector_table_foreach (char *name,
  * function on each entry.
  */
 void
-dissector_table_foreach_handle(char *name,
+dissector_table_foreach_handle(const char *name,
                               DATFunc_handle func,
                               gpointer user_data)
 {
index 04df4703561766a3e47d5db1c3b364f4da2f9d3b..311fcfa647631764bb3a658afcc5acad5ea312a0 100644 (file)
@@ -156,7 +156,7 @@ extern void dissector_table_foreach (char *name, DATFunc func,
     gpointer user_data);
 extern void dissector_all_tables_foreach_changed (DATFunc func,
     gpointer user_data);
-extern void dissector_table_foreach_handle(char *name, DATFunc_handle func,
+extern void dissector_table_foreach_handle(const char *name, DATFunc_handle func,
     gpointer user_data);
 extern void dissector_all_tables_foreach_table (DATFunc_table func,
     gpointer user_data);
index dfe1f834c308f52d7564cdcce9dd7cbee3c74479..498bc027bc6e01660efd0967ffe4c63efd77d3a5 100644 (file)
@@ -207,7 +207,7 @@ about_folders_page_new(void)
   GtkWidget   *table;
   const char *constpath;
   char *path;
-  gchar *titles[] = { "Name", "Folder", "Typical Files"};
+  const gchar *titles[] = { "Name", "Folder", "Typical Files"};
   GtkWidget *scrolledwindow;
 
   scrolledwindow = scrolled_window_new(NULL, NULL);
index cfa2b49c889caaf5b1f3ff51b8810bb45d1f2df9..e1165c020664f220aeaed07bf560020f5355646c 100644 (file)
@@ -271,10 +271,10 @@ ansi_a_stat_gtk_win_destroy_cb(
 static void
 ansi_a_stat_gtk_win_create(
     ansi_a_stat_dlg_t  *dlg_p,
-    char               *title)
+    const char         *title)
 {
 #define        INIT_TABLE_NUM_COLUMNS  3
-    char               *default_titles[] = { "IEI", "Message Name", "Count" };
+    const char         *default_titles[] = { "IEI", "Message Name", "Count" };
     int                        i;
     column_arrows      *col_arrows;
     GtkWidget          *column_lb;
index 4f686d34a9c184dd985a69705e033c0bfb410972..5a71cb6cef2c4a7e3f1c6ebaf6cc30936e20dafd 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;
index 85e4022dfb8954f535b050288e811dea76bdad37..2688b41ebc479dbe2ee4e31d53e7d3ca0c68e77b 100644 (file)
@@ -278,7 +278,7 @@ set_link_type_list(GtkWidget *linktype_om, GtkWidget *entry)
 #define TIME_UNIT_HOUR      2
 #define TIME_UNIT_DAY       3
 #define MAX_TIME_UNITS 4
-static char *time_unit_name[MAX_TIME_UNITS] = {
+static const char *time_unit_name[MAX_TIME_UNITS] = {
        "second(s)",
        "minute(s)",
        "hour(s)",
@@ -385,7 +385,7 @@ guint32 value)
 #define SIZE_UNIT_MEGABYTES 2
 #define SIZE_UNIT_GIGABYTES 3
 #define MAX_SIZE_UNITS 4
-static char *size_unit_name[MAX_SIZE_UNITS] = {
+static const char *size_unit_name[MAX_SIZE_UNITS] = {
        "byte(s)",
        "kilobyte(s)",
        "megabyte(s)",
index c85c3a0e989ea086c6fa730ced1c46ae688beb93..bef43aa646de959c51218c08eff5f88166f4ab49 100644 (file)
@@ -251,9 +251,8 @@ ifopts_edit_cb(GtkWidget *w, gpointer data _U_)
                                *cur_opts_fr, *ed_opts_fr, *main_vb,
                                *if_descr_lb, *if_hide_lb,
                                *bbox, *ok_bt, *cancel_bt;
-       gchar *cur_titles[] = { "Device", "Description", 
-                                                                                               "Comment", "Hide?" };
-    int row = 0;
+       const gchar *cur_titles[] = { "Device", "Description", "Comment", "Hide?" };
+       int row = 0;
 
        GtkWidget *caller = gtk_widget_get_toplevel(w);
        
index c85218bf13186434e3101e94d5083b7e845fbf71..cec6125f3f4a87f80610f85f16706aa52e9accd4 100644 (file)
@@ -63,7 +63,7 @@ static void remember_selected_row(GtkTreeSelection *sel, gpointer list);
 #endif
 static void color_destroy_cb(GtkButton *button, gpointer user_data);
 static void destroy_edit_dialog_cb(gpointer filter_arg, gpointer dummy);
-static void create_new_color_filter(GtkButton *button, char *filter);
+static void create_new_color_filter(GtkButton *button, const char *filter);
 static void color_new_cb(GtkButton *button, gpointer user_data);
 static void color_props_cb(GtkButton *button, gpointer user_data);
 static void color_delete_cb(GtkWidget *widget, gpointer user_data);
@@ -209,7 +209,7 @@ colorize_dialog_new (char *filter)
   GtkTreeViewColumn *column;
   GtkTreeSelection  *selection;
 #endif
-  gchar *titles[] = { "Name", "String" };
+  const gchar *titles[] = { "Name", "String" };
 
 
   row_selected = -1; /* no row selected */
@@ -903,7 +903,7 @@ color_import_cb(GtkButton *button, gpointer user_data )
 /* Create a new filter in the list, and pop up an "Edit color filter"
    dialog box to edit it. */
 static void
-create_new_color_filter(GtkButton *button, char *filter)
+create_new_color_filter(GtkButton *button, const char *filter)
 {
   color_filter_t   *colorf;
   GtkStyle         *style;
index 63f915917cb7c7a8c0dfd5e2ab5bc7932a0a46bd..b4d2f24d33af703e3104c34c893fd2548e8dcb5d 100644 (file)
@@ -77,7 +77,7 @@ column_prefs_show() {
   GList             *clp = NULL;
   fmt_data          *cfmt;
   gint               i;
-  gchar             *column_titles[] = {"Title", "Format"};
+  const gchar       *column_titles[] = {"Title", "Format"};
 #if GTK_MAJOR_VERSION < 2
   gchar             *col_ent[2];
   gint               row;
@@ -423,7 +423,7 @@ column_list_select_cb(GtkTreeSelection *sel, gpointer  user_data _U_)
 static void
 column_list_new_cb(GtkWidget *w _U_, gpointer data _U_) {
     fmt_data     *cfmt;
-    gchar        *title = "New Column";
+    const gchar  *title = "New Column";
 #if GTK_MAJOR_VERSION < 2
     gchar        *col_ent[2];
 #else
index 4ed203c48395426b8e6326462d2e634615dcea5f..262590b3b438efb60398ff7e76ab1b4b89df986a 100644 (file)
@@ -53,9 +53,9 @@ eth_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_,
 
 
 static void
-eth_conversation_init(char *optarg)
+eth_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,eth,",9)){
                filter=optarg+9;
index 8cbd055a4682bafdb2248329a7a1e3d0bb3b005e..ed4e12e1e07ef554a16c75a2cebc8eb7c0f36150 100644 (file)
@@ -53,9 +53,9 @@ fc_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, c
 
 
 static void
-fc_conversation_init(char *optarg)
+fc_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,fc,",8)){
                filter=optarg+8;
index c9db23f57a3a55ef02f6de6499828c65d2371161..135d03865deb04bf7fb8c50e7d5a1e3f97457851 100644 (file)
@@ -53,9 +53,9 @@ fddi_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_,
 
 
 static void
-fddi_conversation_init(char *optarg)
+fddi_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,fddi,",10)){
                filter=optarg+10;
index e5b29dbdaed398b6270f9d998568af0a97108fa4..baac47ca88930b754145c0371d407d53665ec73a 100644 (file)
@@ -51,9 +51,9 @@ ip_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, c
 }
 
 static void
-ip_conversation_init(char *optarg)
+ip_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,ip,",8)){
                filter=optarg+8;
index ad564bf0433d4feda7250baa9dfd5ebf7418b5a1..d397d1426378526388bf587f8a1f096426e95f6b 100644 (file)
@@ -53,9 +53,9 @@ ipx_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_,
 
 
 static void
-ipx_conversation_init(char *optarg)
+ipx_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,ipx,",9)){
                filter=optarg+9;
index cc550aec5126d232dccbc104a1e4f2493537c575..29acc7d78bfb12f8f743ea6630c138368bbe57b7 100644 (file)
@@ -61,9 +61,9 @@ jxta_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_,
 }
 
 static void
-jxta_conversation_init(char *optarg)
+jxta_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,jxta,",10)){
                filter=optarg+10;
index cfe36031dc152c6195ae74ddeb452f930350e91f..2a62cec083db55008c0a499522efa50f818d3a4c 100644 (file)
@@ -1,7 +1,7 @@
 /* conversations_sctp.c
  * conversations_sctp   2005 Oleg Terletsky <oleg.terletsky@comverse.com>
  *
- * $Id:$
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -62,9 +62,9 @@ sctp_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_,
 
 
 static void
-sctp_conversation_init(char *optarg)
+sctp_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,sctp,",10)){
                filter=optarg+10;
index fa655af3e208fdc49256d031ee9700de98ef561d..921c9f535f1d49b27d3dd0c245d5532b1e50615d 100644 (file)
@@ -100,7 +100,7 @@ ct_port_to_str(int port_type, guint32 port)
    of protocols,   either ethernet, tokenring, fddi etc so we must be more
    specific there  thats why we need specific_addr_type
 */
-static char *
+static const char *
 ct_get_filter_name(address *addr, int specific_addr_type, int port_type, int name_type)
 {
        switch(name_type){
@@ -1154,7 +1154,7 @@ copy_as_csv_cb(GtkWindow *win _U_, gpointer data)
 
 
 static gboolean
-init_ct_table_page(conversations_table *conversations, GtkWidget *vbox, gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func)
+init_ct_table_page(conversations_table *conversations, GtkWidget *vbox, gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func)
 {
     int i;
     column_arrows *col_arrows;
@@ -1273,7 +1273,7 @@ init_ct_table_page(conversations_table *conversations, GtkWidget *vbox, gboolean
 
 
 void
-init_conversation_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func)
+init_conversation_table(gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func)
 {
     conversations_table *conversations;
     char title[256];
@@ -1352,7 +1352,7 @@ ct_win_destroy_notebook_cb(GtkWindow *win _U_, gpointer data)
 
 
 static conversations_table *
-init_ct_notebook_page_cb(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func)
+init_ct_notebook_page_cb(gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func)
 {
     gboolean ret;
     GtkWidget *page_vbox;
@@ -1378,9 +1378,9 @@ init_ct_notebook_page_cb(gboolean hide_ports, char *table_name, char *tap_name,
 
 typedef struct {
     gboolean hide_ports;       /* hide TCP / UDP port columns */
-    char *table_name;          /* GUI output name */
-    char *tap_name;            /* internal name */
-    char *filter;              /* display filter string (unused) */
+    const char *table_name;    /* GUI output name */
+    const char *tap_name;      /* internal name */
+    const char *filter;        /* display filter string (unused) */
     tap_packet_cb packet_func; /* function to be called for new incoming packets */
 } register_ct_t;
 
@@ -1388,7 +1388,7 @@ typedef struct {
 static GSList *registered_ct_tables = NULL;
 
 void
-register_conversation_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func)
+register_conversation_table(gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func)
 {
     register_ct_t *table;
 
@@ -1616,7 +1616,7 @@ add_conversation_table_data(conversations_table *ct, const address *src, const a
 
     /* if this was a new conversation we have to create a clist row for it */
     if(new_conversation){
-        char *entries[NUM_COLS];
+        const char *entries[NUM_COLS];
         char frames[16],bytes[16],txframes[16],txbytes[16],rxframes[16],rxbytes[16];
 
         /* these values will be filled by call to draw_ct_table_addresses() below */
index c4c8af2c51a3864be1028449242668c994955e40..783fad0daed9f61ce7f9cb443d7bc55e01dd59fe 100644 (file)
@@ -47,13 +47,13 @@ typedef struct _conversation_t {
 
 /** Conversation widget */
 typedef struct _conversations_table {
-       char                *name;              /**< the name of the table */
+       const char          *name;              /**< the name of the table */
        GtkWidget           *win;               /**< GTK window */
        GtkWidget           *page_lb;           /**< label */
        GtkWidget           *scrolled_window;   /**< the scrolled window */
        GtkCList            *table;             /**< the GTK table */
         guint32             num_columns;         /**< number of columns in the above table */
-        char                *default_titles[10]; /**< Column headers */
+        const char          *default_titles[10]; /**< Column headers */
        GtkWidget           *menu;              /**< context menu */
        gboolean            has_ports;          /**< table has ports */
        guint32             num_conversations;  /**< number of conversations */
@@ -69,7 +69,7 @@ typedef struct _conversations_table {
  * @param filter the optional filter name or NULL
  * @param packet_func the function to be called for each incoming packet
  */
-extern void register_conversation_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func);
+extern void register_conversation_table(gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func);
 
 /** Init the conversation table for the single conversation window.
  *
@@ -79,7 +79,7 @@ extern void register_conversation_table(gboolean hide_ports, char *table_name, c
  * @param filter the optional filter name or NULL
  * @param packet_func the function to be called for each incoming packet
  */
-extern void init_conversation_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func);
+extern void init_conversation_table(gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func);
 
 /** Callback for "Conversations" statistics item.
  *
index 7500e65fb1e60d6df35cad3608d12aa604d1b8a7..f35051275b9bf852376e79f6ae70c564f4de8e3e 100644 (file)
@@ -53,9 +53,9 @@ tcpip_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_
 
 
 static void
-tcpip_conversation_init(char *optarg)
+tcpip_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,tcp,",9)){
                filter=optarg+9;
index 8884e662494d53a58b174dff3aa10f7b444cc083..ad7252fca642e7ec228733238916d8bb526f2190 100644 (file)
@@ -53,9 +53,9 @@ tr_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, c
 
 
 static void
-tr_conversation_init(char *optarg)
+tr_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,tr,",8)){
                filter=optarg+8;
index f24dae9b265c4a113da460e92a3893e806e5a2c5..9e66323065960ecf78dd6175a622709447cc815f 100644 (file)
@@ -53,9 +53,9 @@ udpip_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_
 
 
 static void
-udpip_conversation_init(char *optarg)
+udpip_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,udp,",9)){
                filter=optarg+9;
index a2312a04c434fcde76f578ea5ce87dfc1b46bc74..88e76be3697d214f45de4d30cc61fb7a03820199 100644 (file)
@@ -53,9 +53,9 @@ wlan_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_,
 
 
 static void
-wlan_conversation_init(char *optarg)
+wlan_conversation_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"conv,wlan,",10)){
                filter=optarg+10;
index f5e91efb66317ab9f72bc5647003b62e9b9d1719..9bc0be532a746792bf0cf40560c1833fe0166c23 100644 (file)
@@ -196,7 +196,7 @@ decode_dcerpc_reset_all(void)
 /* remove a binding (looking the same way as the given one) */
 static void
 decode_dcerpc_binding_reset(
-gchar *table_name _U_, 
+const gchar *table_name _U_, 
 decode_dcerpc_bind_values_t *binding)
 {
     GSList *le;
@@ -224,7 +224,7 @@ decode_dcerpc_bind_values_t *binding)
 /* a binding has changed (remove a previously existing one) */
 static void
 decode_dcerpc_binding_change(
-gchar *table_name, 
+const gchar *table_name, 
 decode_dcerpc_bind_values_t *binding)
 {
 
@@ -241,7 +241,7 @@ decode_dcerpc_bind_values_t *binding)
 
 /* a binding has changed (add/replace/remove it) */
 static void
-decode_change_one_dcerpc_binding(gchar *table_name, decode_dcerpc_bind_values_t *binding, GtkWidget *list)
+decode_change_one_dcerpc_binding(const gchar *table_name, decode_dcerpc_bind_values_t *binding, GtkWidget *list)
 {
     dcerpc_uuid_key     *key;
     gchar              *abbrev;
@@ -308,7 +308,7 @@ static void
 decode_dcerpc(GtkWidget *notebook_pg)
 {
     GtkWidget *list;
-    gchar *table_name;
+    const gchar *table_name;
     decode_dcerpc_bind_values_t *binding;
 
 
@@ -347,7 +347,7 @@ decode_dcerpc_add_to_list(gpointer key, gpointer value, gpointer user_data)
 
 /* add all interfaces to the list */
 static GtkWidget *
-decode_add_dcerpc_menu (GtkWidget *page, gchar *table_name _U_)
+decode_add_dcerpc_menu (GtkWidget *page, const gchar *table_name _U_)
 {
     GtkWidget *scrolled_window;
     GtkWidget *list;
index 6b1dcc26eb1b5002745161ebbe9e63799a2c4a19..07a6765b6a372e81ae645b7d83c76082b6ca840b 100644 (file)
@@ -124,7 +124,7 @@ const gchar *current_proto_name);
  * to store any information generated by this routine.
  */
 extern void
-decode_add_to_list (gchar *table_name, const gchar *proto_name, gpointer value, gpointer user_data);
+decode_add_to_list (const gchar *table_name, const gchar *proto_name, gpointer value, gpointer user_data);
 
 /*
  * This routine starts the creation of a List on a notebook page.  It
index 0e270c6b654bf39052efe278af6cbebf7552bf59..8033d707d49cd28ae2c3349ed7e3fd467aefe239 100644 (file)
@@ -265,7 +265,7 @@ gchar *selector_name,
 const gchar *initial_proto_name, 
 const gchar *current_proto_name)
 {
-    gchar     *text[E_LIST_D_COLUMNS];
+    const gchar     *text[E_LIST_D_COLUMNS];
 #if GTK_MAJOR_VERSION < 2
     GtkCList  *clist;
     gint       row;
@@ -280,10 +280,10 @@ const gchar *current_proto_name)
     store = (GtkListStore *)list_data;
 #endif
 
-    text[E_LIST_D_TABLE] = (char *)table_name;
+    text[E_LIST_D_TABLE] = table_name;
     text[E_LIST_D_SELECTOR] = selector_name;
-    text[E_LIST_D_INITIAL] = (char *)initial_proto_name;
-    text[E_LIST_D_CURRENT] = (char *)current_proto_name;
+    text[E_LIST_D_INITIAL] = initial_proto_name;
+    text[E_LIST_D_CURRENT] = current_proto_name;
 #if GTK_MAJOR_VERSION < 2
     row = gtk_clist_prepend(clist, text);
 #else
@@ -523,7 +523,7 @@ void
 decode_show_cb (GtkWidget * w _U_, gpointer data _U_)
 {
     GtkWidget         *main_vb, *bbox, *ok_bt, *clear_bt, *help_bt, *scrolled_window;
-    gchar             *titles[E_LIST_D_COLUMNS] = {
+    const gchar       *titles[E_LIST_D_COLUMNS] = {
         "Table", "Value", "Initial", "Current"
     };
     gint               column;
@@ -1230,9 +1230,9 @@ lookup_handle(GtkTreeModel *model, GtkTreePath *path _U_, GtkTreeIter *iter,
  * to store any information generated by this routine.
  */
 void
-decode_add_to_list (gchar *table_name, const gchar *proto_name, gpointer value, gpointer user_data)
+decode_add_to_list (const gchar *table_name, const gchar *proto_name, gpointer value, gpointer user_data)
 {
-    gchar     *text[E_LIST_S_COLUMNS];
+    const gchar     *text[E_LIST_S_COLUMNS];
 #if GTK_MAJOR_VERSION < 2
     GtkCList  *list;
     gint       row;
@@ -1263,7 +1263,7 @@ decode_add_to_list (gchar *table_name, const gchar *proto_name, gpointer value,
     if (hli.found) return;
 #endif
 
-    text[E_LIST_S_PROTO_NAME] = (char *)proto_name;
+    text[E_LIST_S_PROTO_NAME] = proto_name;
     text[E_LIST_S_TABLE] = table_name;
 #if GTK_MAJOR_VERSION < 2
     row = gtk_clist_prepend(list, text);
@@ -1387,7 +1387,7 @@ decode_list_menu_start(GtkWidget *page, GtkWidget **list_p,
 void
 decode_list_menu_finish(GtkWidget *list)
 {
-    gchar *text[E_LIST_S_COLUMNS];
+    const gchar *text[E_LIST_S_COLUMNS];
 #if GTK_MAJOR_VERSION < 2
     gint row;
 #else
@@ -1432,7 +1432,7 @@ decode_list_menu_finish(GtkWidget *list)
  * scrolled window.
  */
 static GtkWidget *
-decode_add_simple_menu (GtkWidget *page, gchar *table_name)
+decode_add_simple_menu (GtkWidget *page, const gchar *table_name)
 {
     GtkWidget *scrolled_window;
     GtkWidget *list;
@@ -1469,7 +1469,7 @@ decode_add_simple_menu (GtkWidget *page, gchar *table_name)
  * routine.
  */
 static GtkWidget *
-decode_add_simple_page (gchar *prompt, gchar *title, gchar *table_name,
+decode_add_simple_page (const gchar *prompt, const gchar *title, const gchar *table_name,
                        guint value)
 {
     GtkWidget  *page, *label, *scrolled_window;
@@ -1520,7 +1520,7 @@ decode_add_simple_page (gchar *prompt, gchar *title, gchar *table_name,
  * this routine.
  */
 static GtkWidget *
-decode_add_tcpudp_page (gchar *prompt, gchar *table_name)
+decode_add_tcpudp_page (const gchar *prompt, const gchar *table_name)
 {
     GtkWidget  *page, *label, *scrolled_window, *optmenu;
 
@@ -1723,7 +1723,7 @@ decode_sctp_add_port_ppid (GtkWidget *page)
 
 
 static GtkWidget *
-decode_add_sctp_page (gchar *prompt, gchar *table_name)
+decode_add_sctp_page (const gchar *prompt, const gchar *table_name)
 {
     GtkWidget  *page, *label, *scrolled_window,  *radio, *vbox, *alignment, *sctpbox, *sctpmenu;
 
index a98dda52206cc889ceb1ebead1445fefc967d18c..515fc7b2f8ab0e7f256c6a4f7c741cadc70eb152 100644 (file)
@@ -77,7 +77,7 @@ typedef struct protocol_data {
 
 static void show_relations(GtkWidget *relation_list, ftenum_t ftype);
 static gboolean relation_is_presence_test(const char *string);
-static void add_relation_list(GtkWidget *relation_list, char *relation, gboolean sensitive);
+static void add_relation_list(GtkWidget *relation_list, const char *relation, gboolean sensitive);
 static void build_boolean_values(GtkWidget *value_list_scrolled_win,
                                  GtkWidget *value_list,
                                  const true_false_string *values);
@@ -297,7 +297,7 @@ relation_is_presence_test(const char *string)
 }
 
 static void
-add_relation_list(GtkWidget *relation_list, char *relation, gboolean sensitive)
+add_relation_list(GtkWidget *relation_list, const char *relation, gboolean sensitive)
 {
 #if GTK_MAJOR_VERSION < 2
     GtkWidget *label, *item;
@@ -431,7 +431,7 @@ build_boolean_values(GtkWidget *value_list_scrolled_win, GtkWidget *value_list,
      */
     if (values == NULL)
         values = &true_false;
-    add_value_list_item(value_list, values->true_string, (gpointer)values);
+    add_value_list_item(value_list, values->true_string, values);
     add_value_list_item(value_list, values->false_string, NULL);
 
     /*
@@ -488,7 +488,7 @@ build_enum_values(GtkWidget *value_list_scrolled_win _U_, GtkWidget *value_list,
      */
     while (values->strptr != NULL) {
         add_value_list_item(value_list, values->strptr,
-                            (gpointer)values);
+                            values);
         values++;
     }
 
index 444ba93176c3d358dd2550fcd9cd57ab890f4808..72c53bd12d1554ba405154f3f16f17535f1d6bd5 100644 (file)
@@ -63,7 +63,7 @@ static void file_selection_browse_destroy_cb(GtkWidget *win, GtkWidget* file_te)
 
 /* create a button for the button row (helper for dlg_button_row_new) */
 static GtkWidget *
-dlg_button_new(GtkWidget *hbox, GtkWidget *button_hbox, gchar *stock_id)
+dlg_button_new(GtkWidget *hbox, GtkWidget *button_hbox, const gchar *stock_id)
 {
     GtkWidget *button;
 
@@ -87,32 +87,32 @@ dlg_button_new(GtkWidget *hbox, GtkWidget *button_hbox, gchar *stock_id)
  *     GTK2 (e.g. GNOME) "Apply" "Cancel" "OK"
  */
 GtkWidget *
-dlg_button_row_new(gchar *stock_id_first, ...)
+dlg_button_row_new(const gchar *stock_id_first, ...)
 {
     gint        buttons = 0;
     va_list     stock_id_list;
-    gchar       *stock_id = stock_id_first;
+    const gchar *stock_id = stock_id_first;
     GtkWidget   *hbox;
     GtkWidget   *button_hbox;
     GtkWidget   *help_hbox;
     GtkWidget   *button;
 
-    gchar *ok           = NULL;
-    gchar *apply        = NULL;
-    gchar *save         = NULL;
-    gchar *dont_save   = NULL;
-    gchar *cancel       = NULL;
-    gchar *close        = NULL;
-    gchar *clear        = NULL;
-    gchar *start        = NULL;
-    gchar *stop         = NULL;
-    gchar *create_stat  = NULL;
-    gchar *help         = NULL;
-    gchar *print        = NULL;
-    gchar *find         = NULL;
-    gchar *jump         = NULL;
-    gchar *yes          = NULL;
-    gchar *no           = NULL;
+    const gchar *ok           = NULL;
+    const gchar *apply        = NULL;
+    const gchar *save         = NULL;
+    const gchar *dont_save    = NULL;
+    const gchar *cancel       = NULL;
+    const gchar *close        = NULL;
+    const gchar *clear        = NULL;
+    const gchar *start        = NULL;
+    const gchar *stop         = NULL;
+    const gchar *create_stat  = NULL;
+    const gchar *help         = NULL;
+    const gchar *print        = NULL;
+    const gchar *find         = NULL;
+    const gchar *jump         = NULL;
+    const gchar *yes          = NULL;
+    const gchar *no           = NULL;
 
 
     va_start(stock_id_list, stock_id_first);
index f0cba2c98ef02e6a55f02d987ec49b28f37541ac..478a7ff7ceb5ce64ff5cd95c734ce15afaf6754d 100644 (file)
@@ -166,7 +166,7 @@ extern void set_last_open_dir(char *dirname);
  * @return the new button row
  * @todo move this to ui_util.h
  */
-extern GtkWidget *dlg_button_row_new(gchar *stock_id_first, ...);
+extern GtkWidget *dlg_button_row_new(const gchar *stock_id_first, ...);
 
 /** Set the "activate" signal for a widget to call a routine to
  *  activate the "OK" button for a dialog box.
index 8fcf6a1a79b5e142f950324b366df690c5377ce8..6493738dea8a26e082094239dd852acec7919e56 100644 (file)
@@ -359,7 +359,7 @@ file_open_entry_changed(GtkWidget *w _U_, gpointer file_sel)
 
 /* copied from summary_dlg.c */
 static GtkWidget *
-add_string_to_table_sensitive(GtkWidget *list, guint *row, gchar *title, gchar *value, gboolean sensitive)
+add_string_to_table_sensitive(GtkWidget *list, guint *row, const gchar *title, const gchar *value, gboolean sensitive)
 {
     GtkWidget *label;
     gchar     *indent;
@@ -386,7 +386,7 @@ add_string_to_table_sensitive(GtkWidget *list, guint *row, gchar *title, gchar *
 }
 
 static GtkWidget *
-add_string_to_table(GtkWidget *list, guint *row, gchar *title, gchar *value)
+add_string_to_table(GtkWidget *list, guint *row, const gchar *title, const gchar *value)
 {
     return add_string_to_table_sensitive(list, row, title, value, TRUE);
 }
index 775550b8116c9b2741d02b7f73c1eb60172c8e1e..ec06e0de4820467ca4c174770d46ef591e6cefba 100644 (file)
@@ -813,7 +813,7 @@ filter_dlg_save_cb(GtkWidget *save_bt _U_, gpointer data)
        char *pf_dir_path;
        char *f_path;
        int f_save_errno;
-       char *filter_type;
+       const char *filter_type;
 
        /* Create the directory that holds personal configuration files,
           if necessary.  */
index 9f20ab9f2c55d885de5a3c693a0a6961d64666b5..f6049c5b6ca1cc57a04730d4046f5203a059c1f1 100644 (file)
@@ -38,7 +38,7 @@
  * created.
  */
 typedef struct {
-    gchar    *title;                /**< title of dialog box */
+    const gchar    *title;          /**< title of dialog box */
     gboolean wants_apply_button;    /**< dialog should have an Apply button */
     gboolean activate_on_ok;        /**< if parent text widget should be
                                         activated on "Ok" or "Apply" */
index 2261e67a8935c0c55dbd7f01e4a43b3eae846256..cbd5ab9f156b2da9ff59f6c34ad8054ca9b243b6 100644 (file)
@@ -783,7 +783,7 @@ find_previous_cb(GtkWidget *w , gpointer d)
 
 /* this function jumps to the next packet matching the filter */
 void
-find_previous_next_frame_with_filter(char *filter, gboolean backwards)
+find_previous_next_frame_with_filter(const char *filter, gboolean backwards)
 {
   dfilter_t *sfcode;
   gboolean sbackwards_saved;
index 41ddfe3c4c39ee2df65719bf42b7e74cbea134f5..46fc2cc1fb9df314b659b0b0f8ced52f74066056 100644 (file)
@@ -63,6 +63,6 @@ extern void find_frame_with_filter(char *filter);
  * @param filter the filter string
  * @param backwards TRUE, if searching should be done backwards
  */
-extern void find_previous_next_frame_with_filter(char *filter, gboolean backwards);
+extern void find_previous_next_frame_with_filter(const char *filter, gboolean backwards);
 
 #endif /* find_dlg.h */
index 55e9e152065be38cff46bf19a19b254eeba30d2f..2eaa75e1d2ac5fade58586eff3e2de9e96feb9c4 100644 (file)
@@ -241,7 +241,7 @@ int flow_graph_tcp_add_to_graph(packet_info *pinfo, const struct tcpheader *tcph
 {
        graph_analysis_item_t *gai;
        /* copied from packet-tcp */
-       gchar     *fstr[] = {"FIN", "SYN", "RST", "PSH", "ACK", "URG", "ECN", "CWR" };
+       const gchar *fstr[] = {"FIN", "SYN", "RST", "PSH", "ACK", "URG", "ECN", "CWR" };
        guint i, bpos;
        guint fpos = 0;
        gchar flags[64] = "<None>";
@@ -524,7 +524,7 @@ static void flow_graph_dlg_create (void)
 
 /* init function for tap */
 static void
-flow_graph_init_tap(char *dummy _U_)
+flow_graph_init_tap(const char *dummy _U_)
 {
 
        /* initialize graph items store */
index 5c8a0e5e7f13d5ec736ecfe4c3ecf8eba5173ade..e34b4347a26fe34ac6e5d77bf155a4caaa80b83f 100644 (file)
@@ -358,10 +358,10 @@ gsm_a_stat_gtk_win_destroy_cb(
 static void
 gsm_a_stat_gtk_win_create(
     gsm_a_stat_dlg_t   *dlg_p,
-    char               *title)
+    const char         *title)
 {
 #define        INIT_TABLE_NUM_COLUMNS  3
-    char               *default_titles[] = { "IEI", "Message Name", "Count" };
+    const char         *default_titles[] = { "IEI", "Message Name", "Count" };
     int                        i;
     column_arrows      *col_arrows;
     GtkWidget          *column_lb;
@@ -506,7 +506,7 @@ gsm_a_stat_gtk_dtap_cb(
     GtkWidget          *w _U_,
     gpointer           d _U_,
     gsm_a_stat_dlg_t   *dlg_dtap_p,
-    char               *title,
+    const char         *title,
     const value_string *dtap_msg_strings)
 {
     int                        i;
index e563f4fc796757ea75fa4488cd28d23fbd318231..2f8221126e26d26dd0c075d59c4e0b9b21085139 100644 (file)
@@ -65,7 +65,7 @@ typedef struct column_arrows {
 
 typedef struct _my_columns_t {
     guint32            value;
-    gchar              *strptr;
+    const gchar                *strptr;
     GtkJustification   just;
 } my_columns_t;
 
@@ -300,7 +300,7 @@ gsm_map_stat_gtk_win_destroy_cb(
 static void
 gsm_map_stat_gtk_win_create(
     gsm_map_stat_dlg_t *dlg_p,
-    char               *title)
+    const char         *title)
 {
     int                        i;
     column_arrows      *col_arrows;
index 343bf2bcbe9a2b5fab5819b55b9c50609544f5e7..bc96023b697d3a57beaf43e7544b6ab1f564b605 100644 (file)
@@ -74,7 +74,7 @@ add_table_entry(gtk_table *tab, const char *str, int x, int y)
 /* init a main windowfor stats, set title and display used filter in window */
 
 void
-init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, char *title, char *filter)
+init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, const char *title, const char *filter)
 {
        GtkWidget *main_label;
        GtkWidget *filter_label;
@@ -101,7 +101,7 @@ init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, char *title, char *
 /* create a table, using a scrollable gtkclist */
 
 GtkCList *
-create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, char *titles[])
+create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const char *titles[])
 {
        GtkCList *table;
        int i;
index 4cbb6a011b5cc75585dec4def84299a358fc7136..3287cab81d63f969a5c6f04529695d0438f9cc8d 100644 (file)
@@ -41,7 +41,7 @@
  * @param title the title for the window
  * @param filter the filter string
  */
-extern void init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, char *title, char *filter);
+extern void init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, const char *title, const char *filter);
 
 /** Create a stats table, using a scrollable gtkclist.
  *
@@ -50,6 +50,6 @@ extern void init_main_stat_window(GtkWidget *window, GtkWidget *mainbox, char *t
  * @param columns number of columns
  * @param titles 
  */
-extern GtkCList *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, char *titles[]);
+extern GtkCList *create_stat_table(GtkWidget *scrolled_window, GtkWidget *vbox, int columns, const char *titles[]);
 
 #endif
index 24894402b999b186296c736d166d2ea6d7d4fcbb..e6d1c6095d7c12571e36b03b1b13ebd953365bab 100644 (file)
@@ -497,7 +497,7 @@ win_destroy_cb(GtkWindow *win _U_, gpointer data)
 }
 
 
-static gchar *titles[]={"Message Type or Reason",
+static const gchar *titles[]={"Message Type or Reason",
                        "Count" };
 
 static void
index add30db5cfd1d3f4bdf1c0868cee80619e757f61..57b9399352d009219af2cace065f2d56e8502197 100644 (file)
@@ -268,7 +268,7 @@ win_destroy_cb(GtkWindow *win _U_, gpointer data)
 }
 
 
-static gchar *titles[]={"RAS-Type",
+static const gchar *titles[]={"RAS-Type",
                        "Measurements",
                        "Min RTT",
                        "Max RTT",
index dc34285e6c6ed7a6a95b5dccd3c60fcdf59442a9..91810117b528808400175c363d176a3d8059ac45 100644 (file)
@@ -223,7 +223,7 @@ gboolean topic_available(topic_action_e action) {
 /*
  * Open the help dialog and show a specific help page.
  */
-static void help_topic(gchar *topic) {
+static void help_topic(const gchar *topic) {
     gchar       *page_topic;
     GtkWidget   *help_nb;
     GSList      *help_page_ent;
index b7a93c3cd5fe3196b21f81487e82f2c694a88ffe..8a97687401d9a51747d41bca1f5ca76ab9c3bd33 100644 (file)
@@ -58,7 +58,7 @@ eth_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, cons
 
 
 static void
-gtk_eth_hostlist_init(char *optarg)
+gtk_eth_hostlist_init(const char *optarg)
 {
        char *filter=NULL;
 
index b294c5b4b0c829860ff5fd79c352b4d29890bca4..538de0ed88bcf85b2e1f547b2edb6178338a33b4 100644 (file)
@@ -94,7 +94,7 @@ hostlist_port_to_str(int port_type, guint32 port)
    of protocols,   either ethernet, tokenring, fddi etc so we must be more
    specific there  thats why we need specific_addr_type
 */
-static char *
+static const char *
 hostlist_get_filter_name(address *addr, int specific_addr_type, int port_type, int name_type)
 {
        switch(name_type){
@@ -617,7 +617,7 @@ copy_as_csv_cb(GtkWindow *win _U_, gpointer data)
 
 
 static gboolean
-init_hostlist_table_page(hostlist_table *hosttable, GtkWidget *vbox, gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func)
+init_hostlist_table_page(hostlist_table *hosttable, GtkWidget *vbox, gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func)
 {
     int i;
     column_arrows *col_arrows;
@@ -1041,7 +1041,7 @@ add_hostlist_table_data(hostlist_table *hl, const address *addr, guint32 port, g
 
     /* if this was a new talker we have to create a clist row for it */
     if(new_talker){
-        char *entries[NUM_COLS];
+        const char *entries[NUM_COLS];
         char frames[16],bytes[16],txframes[16],txbytes[16],rxframes[16],rxbytes[16];
 
         /* these values will be filled by call to draw_hostlist_table_addresses() below */
index cea976aabbe194417d30844088e9d65a0d06f26a..17f78e72853fb3e6834446b7f4e7755a604bb73d 100644 (file)
@@ -50,7 +50,7 @@ typedef struct _hostlist_table {
        GtkWidget           *scrolled_window;   /**< the scrolled window */
        GtkCList            *table;             /**< the GTK table */
        guint32             num_columns;        /**< number of columns in the above table */
-    char                *default_titles[8]; /**< Column headers */
+       const char          *default_titles[8]; /**< Column headers */
        GtkWidget           *menu;              /**< context menu */
        gboolean            has_ports;          /**< table has ports */
        guint32             num_hosts;          /**< number of hosts (0 or 1) */
@@ -76,7 +76,7 @@ extern void register_hostlist_table(gboolean hide_ports, char *table_name, char
  * @param filter the optional filter name or NULL
  * @param packet_func the function to be called for each incoming packet
  */
-extern void init_hostlist_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func);
+extern void init_hostlist_table(gboolean hide_ports, const char *table_name, const char *tap_name, const char *filter, tap_packet_cb packet_func);
 
 /** Callback for "Endpoints" statistics item.
  *
index ec93f57d0f766fa6486c139e18a8dc0810007de8..0759d62be0c2ef53f3b4b9ebedcddd1ae9837218 100644 (file)
@@ -343,7 +343,7 @@ selected_ptree_info_cb(GtkWidget *widget _U_, gpointer data _U_)
                     "Hint 2: If you want to add a new protocol page, you should use the ProtocolTemplate,\n"
                     "which will save you a lot of editing and will give a consistent look over the pages.",
                     proto_abbrev, proto_abbrev);
-        simple_dialog_set_cb(dialog, selected_ptree_info_answered_cb, (gpointer) proto_abbrev);
+        simple_dialog_set_cb(dialog, selected_ptree_info_answered_cb, proto_abbrev);
     }
 }
 
index ab9a189631aa64e80642f90102dd68670839ae86..d722b28a314628da5f490219934875e1b6f874b2 100644 (file)
@@ -649,7 +649,7 @@ static GList * tap_menu_item_add(
  */
 void
 register_tap_menu_item(
-    char *name, 
+    const char *name, 
     REGISTER_TAP_GROUP_E group,
     GtkItemFactoryCallback callback,
     gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *),
@@ -657,7 +657,7 @@ register_tap_menu_item(
     gpointer callback_data)
 {
     /*static const char toolspath[] = "/Statistics/";*/
-    char *toolspath;
+    const char *toolspath;
     char *p;
     char *menupath;
     size_t menupathlen;
@@ -932,7 +932,7 @@ set_menu_sensitivity(GtkItemFactory *ifactory, const gchar *path, gint val)
 }
 
 static void
-set_menu_object_data_meat(GtkItemFactory *ifactory, gchar *path, gchar *key, gpointer data)
+set_menu_object_data_meat(GtkItemFactory *ifactory, const gchar *path, const gchar *key, gpointer data)
 {
        GtkWidget *menu = NULL;
 
@@ -941,7 +941,7 @@ set_menu_object_data_meat(GtkItemFactory *ifactory, gchar *path, gchar *key, gpo
 }
 
 void
-set_menu_object_data (gchar *path, gchar *key, gpointer data) {
+set_menu_object_data (const gchar *path, const gchar *key, gpointer data) {
   GSList *menu_list = popup_menu_list;
   gchar *shortpath = strrchr(path, '/');
 
index 6fb1ef044b4c4b8c9a99cb53b7e730dab2d437e1..b4c0cc3c28231df6863fce14a6c23ec17d29d500 100644 (file)
@@ -72,7 +72,7 @@ extern GtkWidget *main_menu_new(GtkAccelGroup **accel);
  * @param key the key to set
  * @param data the data to set
  */
-extern void set_menu_object_data(gchar *path, gchar *key, gpointer data);
+extern void set_menu_object_data(const gchar *path, const gchar *key, gpointer data);
 
 /** The popup menu handler.
  *
index 8f3399b74dec5a605ca39708784562125f96f775..36345bc89d46fce1ca44a297627f677131b20fa8 100644 (file)
@@ -558,10 +558,10 @@ packet_list_set_column_titles(void)
     win_style = gtk_widget_get_style(top_level);
     ascend_pm = gdk_pixmap_create_from_xpm_d(top_level->window, &ascend_bm,
                                              &win_style->bg[GTK_STATE_NORMAL],
-                                             (gchar **)clist_ascend_xpm);
+                                             clist_ascend_xpm);
     descend_pm = gdk_pixmap_create_from_xpm_d(top_level->window, &descend_bm,
                                               &win_style->bg[GTK_STATE_NORMAL],
-                                              (gchar **)clist_descend_xpm);
+                                              clist_descend_xpm);
 
     col_arrows = (column_arrows *) g_malloc(sizeof(column_arrows) *
                                             cfile.cinfo.num_cols);
@@ -702,7 +702,7 @@ packet_list_append(const gchar *text[], gpointer data)
 {
     gint row;
 
-    row = eth_clist_append(ETH_CLIST(packet_list), (gchar **)text);
+    row = eth_clist_append(ETH_CLIST(packet_list), text);
     eth_clist_set_row_data(ETH_CLIST(packet_list), row, data);
     return row;
 }
index 536c89113722f9756d1416c0834909c1b0339dea..90d4f47c8de092a619ff92526c65c59835bd625b 100644 (file)
@@ -56,7 +56,7 @@ plugins_scan(GtkWidget *list)
 {
     plugin     *pt_plug;
     GString    *type;
-    char       *sep;
+    const char       *sep;
 
     pt_plug = plugin_list;
     while (pt_plug)
@@ -88,7 +88,7 @@ about_plugins_page_new(void)
 {
     GtkWidget *scrolledwindow;
     GtkWidget *plugins_list;
-    gchar     *titles[] = {"Name", "Version", "Type"};
+    const gchar     *titles[] = {"Name", "Version", "Type"};
 
     
     scrolledwindow = scrolled_window_new(NULL, NULL);
index 390997d765bc6f668eba7eb516fe837b7a12f858..31c2395fe4ea0036f892c238e83e432a6d8dd20e 100644 (file)
@@ -72,7 +72,7 @@ typedef enum {
 */
 
 static GtkWidget *
-open_print_dialog(char *title, output_action_e action, print_args_t *args);
+open_print_dialog(const char *title, output_action_e action, print_args_t *args);
 static void print_cmd_toggle_dest(GtkWidget *widget, gpointer data);
 static void print_cmd_toggle_detail(GtkWidget *widget, gpointer data);
 static void print_ok_cb(GtkWidget *ok_bt, gpointer parent_w);
@@ -388,7 +388,7 @@ print_browse_file_cb(GtkWidget *file_bt, GtkWidget *file_te)
 
 /* Open the print dialog */
 static GtkWidget *
-open_print_dialog(char *title, output_action_e action, print_args_t *args)
+open_print_dialog(const char *title, output_action_e action, print_args_t *args)
 {
 #if GTK_MAJOR_VERSION < 2
   GtkAccelGroup *accel_group;
index fae73999864222d277247db3a8188ef39c9ba169..f8f673bf0e66442fdca8b46999998dccf947a5cd 100644 (file)
@@ -98,7 +98,7 @@ proto_cb(GtkWidget *w _U_, gpointer data _U_)
 
   GtkWidget *main_vb, *bbox, *proto_list, *label, *proto_sw, *proto_frame,
             *proto_vb, *button;
-  gchar *titles[] = { "Status", "Protocol", "Description" };
+  const gchar *titles[] = { "Status", "Protocol", "Description" };
 #if GTK_MAJOR_VERSION < 2
   gint width;
 #else
index 2fca557d659b2134a8ccbaf8b89db5d2fb22b202..a9025ef39b523ca40b9f595c177cdac8c9971505 100644 (file)
@@ -1019,8 +1019,8 @@ packet_hex_print_common(GtkTextView *bv, const guint8 *pd, int len, int bstart,
 #else
   GtkTextBuffer *buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(bv));
   GtkTextIter    iter;
-  char          *revstyle;
-  gchar         *convline;
+  const char    *revstyle;
+  const gchar   *convline;
   gsize          newsize;
   GtkTextMark   *mark = NULL;
 #endif
index 5ede8330dfa23971c701993c9ddc77d72c86b49e..bed0dc25703ec2e5401a231dc572d45790e7d968 100644 (file)
@@ -75,7 +75,7 @@ fill_in_tree_node(GNode *node, gpointer data)
     gboolean        is_leaf;
     draw_info_t     child_di;
     double         seconds;
-    gchar           *text[NUM_STAT_COLUMNS];
+    const gchar     *text[NUM_STAT_COLUMNS];
 #if GTK_MAJOR_VERSION < 2
     GtkCTree        *tree = di->tree;
     GtkCTreeNode    *parent = di->parent;
@@ -96,7 +96,7 @@ fill_in_tree_node(GNode *node, gpointer data)
 
     seconds = ps->last_time - ps->first_time;
 
-    text[0] = (gchar *) stats->hfinfo->name;
+    text[0] = stats->hfinfo->name;
     text[1] = g_strdup_printf("%6.2f%%",
                               PCT(stats->num_pkts_total, ps->tot_packets));
     text[2] = g_strdup_printf("%u", stats->num_pkts_total);
index 84120be319f8c948238ede47ba577585d3c7c3ad..7849d5e99f7ee511716d9062174c7477e623718d 100644 (file)
@@ -72,7 +72,7 @@ extern void add_menu_recent_capture_file(gchar *file);
 
 recent_settings_t recent;
 
-static char *ts_type_text[] =
+static const char *ts_type_text[] =
        { "RELATIVE", "ABSOLUTE", "ABSOLUTE_WITH_DATE", "DELTA", NULL };
 
 /* Takes an string and a pointer to an array of strings, and a default int value.
@@ -81,7 +81,7 @@ static char *ts_type_text[] =
  * default value that was passed as the third argument is returned.
  */
 static int
-find_index_from_string_array(char *needle, char **haystack, int default_value)
+find_index_from_string_array(const char *needle, const char **haystack, int default_value)
 {
        int i = 0;
 
index 98e16fca6a4057515c09a7c66f0abdd2053a3819..3b6a5b1a6dac39591f2ec919e5f5a39034fc6339 100644 (file)
@@ -149,7 +149,7 @@ gtk_sctperror_dlg(void)
        GtkWidget *bt_frame;
        GtkWidget *bt_close;
 
-       gchar *titles[NUM_COLS] =  {"Framenumber","Chunk Types", "Info"};
+       const gchar *titles[NUM_COLS] =  {"Framenumber","Chunk Types", "Info"};
        column_arrows *col_arrows;
        GtkStyle *win_style;
        GtkWidget *column_lb;
index 6dd87cbf2dce5ec4bc9611fba719c73248149183..9bf7d6de2d832fa47180158381cc0a3a8e7fc682 100644 (file)
@@ -201,7 +201,7 @@ typedef struct _sctp_assoc_info {
 typedef struct _sctp_error_info {
        guint32 frame_number;
        gchar   chunk_info[200];
-       gchar  *info_text;
+       const gchar  *info_text;
 } sctp_error_info_t;
 
 
index 4e751fb23b5213f2b120f39b9169b2cacfb6617f..9281766de004a570496fa80e588cfc4370ba5f46 100644 (file)
@@ -336,7 +336,7 @@ init_srt_table(srt_stat_table *rst, int num_procs, GtkWidget *vbox, const char *
        GdkPixmap *ascend_pm, *descend_pm;
        GtkStyle *win_style;
        GtkWidget *column_lb;
-       char *default_titles[] = { "Index", "Procedure", "Calls", "Min SRT", "Max SRT", "Avg SRT" };
+       const char *default_titles[] = { "Index", "Procedure", "Calls", "Min SRT", "Max SRT", "Avg SRT" };
 
 
        if(filter_string){
index d791343eeabc9823687846efada73b9809d0fe2a..3a7de2a08d3bd12cdfc9976924dd80fd99f0eb0b 100644 (file)
@@ -73,7 +73,7 @@ typedef enum {
  * @param callback_data data for callback function
  */    
 extern void register_tap_menu_item(
-    char *name, 
+    const char *name, 
     REGISTER_TAP_GROUP_E group,
     GtkItemFactoryCallback callback,
     gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *),
index 799c5c07bf460383c628715a806ecb5886354f11..3c4c560ca13d3f3c9919ead1020454644f95583e 100644 (file)
@@ -957,7 +957,7 @@ simple_list_append(GtkWidget *list, ...)
 
 /* create a simple list widget */
 GtkWidget *
-simple_list_new(gint cols, gchar **titles) {
+simple_list_new(gint cols, const gchar **titles) {
     GtkWidget *plugins_list;
 #if GTK_MAJOR_VERSION >= 2
     int i;
@@ -1025,7 +1025,7 @@ copy_to_clipboard(GString *str)
  * (Or ignore it if unspecified).
  */
 gchar *
-create_user_window_title(gchar *caption)
+create_user_window_title(const gchar *caption)
 {
        /* fail-safe */
        if (caption == NULL)
index a421a1782c1b0222137b1e4d43e4872e1f4a9e9f..b037f0a43075e31b8a5ee0a5054e865fa5a3c2c9 100644 (file)
@@ -261,7 +261,7 @@ extern GtkWidget *tree_view_new(GtkTreeModel *model);
  * @param titles the titles of all columns
  * @return the new simple list widget
  */
-extern GtkWidget *simple_list_new(gint cols, gchar **titles);
+extern GtkWidget *simple_list_new(gint cols, const gchar **titles);
 /** Append a row to the simple list.
  *
  * @param list the list from simple_list_new()
@@ -302,7 +302,7 @@ extern void copy_to_clipboard(GString *str);
  * @param caption string you want included in title (appended to user-defined string)
  * @return a newly created title string including user-defined preference (if specified)
  */
-extern gchar *create_user_window_title(gchar *caption);
+extern gchar *create_user_window_title(const gchar *caption);
 
 
 #endif /* __GTKGUIUI_UTIL_H__ */
index 96188a5c3aced8d18cc5740d70a5e09017e5f04b..55798c8823fbe35e3a865d3e5a31308a3485fd9f 100644 (file)
@@ -63,7 +63,7 @@
 #include "alert_box.h"
 #include "simple_dialog.h"
 
-char *voip_call_state_name[7]={
+const char *voip_call_state_name[7]={
        "CALL SETUP",
        "RINGING",
        "IN CALL",
@@ -74,7 +74,7 @@ char *voip_call_state_name[7]={
        };
 
 /* defines whether we can consider the call active */
-char *voip_protocol_name[6]={
+const char *voip_protocol_name[6]={
        "SIP",
        "ISUP",
        "H323",
@@ -84,8 +84,8 @@ char *voip_protocol_name[6]={
        };
 
 typedef struct {
-       gchar *frame_label;
-       gchar *comment;
+       const gchar *frame_label;
+       const gchar *comment;
 } graph_str;
 
 #define H245_MAX 6
@@ -1960,7 +1960,7 @@ remove_tap_listener_sdp_calls(void)
    This function will look for a signal/event in the SignalReq/ObsEvent string
    and return true if it is found 
 */
-gboolean isSignal(gchar *signal, gchar *signalStr)
+gboolean isSignal(const gchar *signal, const gchar *signalStr)
 {
        gint i; 
        gchar **resultArray;
index 2b23860871235f6bdfed196ef8560ff192707d6b..a7d1ba95990c6f56314e89874e06a77ee7198323 100644 (file)
@@ -52,7 +52,7 @@ typedef enum _voip_call_state {
                VOIP_UNKNOWN
 } voip_call_state;
 
-extern char *voip_call_state_name[7];
+extern const char *voip_call_state_name[7];
 
 typedef enum _voip_call_active_state {
                VOIP_ACTIVE,
@@ -68,7 +68,7 @@ typedef enum _voip_protocol {
                VOIP_AC_CAS
 } voip_protocol;
 
-extern char *voip_protocol_name[6];
+extern const char *voip_protocol_name[6];
 
 /* defines specific SIP data */
 
index 8f71d31e55679a30dd58028efce7aa261d8bbeb7..929f5aca68362528c8426e4a24074ac59fe5170c 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char *dn_arrow[] = {
+static const char *dn_arrow[] = {
 /* width height num_colors chars_per_pixel */
 "    11    12        2            1",
 /* colors */
index 4853f90db67bc76e18f9ae0cc91ec3fa06c83797..2a3121a56796958d5f839e140c5bdc26626cbce8 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * eexcl3d64_xpm[] = {
+static const char * eexcl3d64_xpm[] = {
 "64 64 1305 2",
 "      c None",
 ".     c #ACAFAC",
index 29af14d6a0cda3ebf103b27ad7821a13f504b996..08f366079a2b112d6ae2e3279a4159f09f94d8e2 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * eicon3d16_xpm[] = {
+static const char * eicon3d16_xpm[] = {
 "16 16 195 2",
 "      c None",
 ".     c #C6CAC6",
index 0df6d97a25f73676c329af3c911f35cb63e99dfb..af56ef040901f78501462a7fa215b596a3afb5d2 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * eicon3d32_xpm[] = {
+static const char * eicon3d32_xpm[] = {
 "32 32 599 2",
 "      c None",
 ".     c #ACB0AC",
index 999cf81f7f65e6473f804fccfe4802c862816efd..651d4bc3bf95a49117ee988cc2f1474029b239e7 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * eicon3d48_xpm[] = {
+static const char * eicon3d48_xpm[] = {
 "48 48 1034 2",
 "      c None",
 ".     c #B2B5B2",
index 2529c21fbcfe33793732d7e936c83cf3cf7cee96..772e609efea09692aae5a39bc6536aef5f136a7a 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char *icon_ethereal_xpm[] = {
+static const char *icon_ethereal_xpm[] = {
 /* width height num_colors chars_per_pixel */
 "    66    63       10            1",
 /* colors */
index dfd3ecb57b2f3543512d898b10dd531d93dfde94..4b68e381e61bb4e7ed6b2d3b8cb7a77d555289e5 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * icon_excl_xpm[] = {
+static const char * icon_excl_xpm[] = {
 "64 64 21 1",
 "      c None",
 ".     c #FFFFFF",
index cd87bd0b7883465a6730b54ddf0e13c01bdbd6ce..89dbc8f69e1faecad743f0267e02f228d1aafd3b 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_dialog_error_48_xpm[] = {
+static const char * stock_dialog_error_48_xpm[] = {
 "48 48 474 2",
 "      c None",
 ".     c #8B5447",
index 9dbbd8591d55d99657219a975959591f1825f0e1..09dc59f1d12335937dda11e27b4e1e7348d4049b 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_dialog_info_48_xpm[] = {
+static const char * stock_dialog_info_48_xpm[] = {
 "48 48 590 2",
 "      c None",
 ".     c #9A9AA0",
index f31619630601ebf31108be00c539c06353fb35e3..0f70d1977fb33c16f079dce898dc333dead4352b 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_dialog_question_48_xpm[] = {
+static const char * stock_dialog_question_48_xpm[] = {
 "48 48 481 2",
 "      c None",
 ".     c #572B20",
index 341d19872fd06d4156fddb7d99b948a2ded021d3..16b9b50b04dac70e03ee72c69b06346d48bdde67 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_dialog_warning_48_xpm[] = {
+static const char * stock_dialog_warning_48_xpm[] = {
 "48 48 225 2",
 "      c None",
 ".     c #000000",
index f62d9238a4be069c85aded9b5c90d6be42d105c2..5a2272c2584bd3f52c294c17b21aeba56eddd6e2 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * autoscroll_24_xpm[] = {
+static const char * autoscroll_24_xpm[] = {
 "24 24 71 1",
 "      c None",
 ".     c #000000",
index e0d0a7b30e690b8968b7ca64254696b4c27568c9..30a183c897736b5bebe239b88e5a152d9d02737f 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * capture_filter_24_xpm[] = {
+static const char * capture_filter_24_xpm[] = {
 "24 24 305 2",
 "      c None",
 ".     c #000000",
index 5c19c437fdf01e7c77888cf5071807499c674e56..f92967c8535d6a3ca5c0df5460b34053b3654a25 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * capture_interfaces_24_xpm[] = {
+static const char * capture_interfaces_24_xpm[] = {
 "24 24 219 2",
 "      c None",
 ".     c #000000",
index 1823101edcca004b052cc9cdfd87debce9e49b35..353ef8700235b55d0b3e78b51ad656a44d1b952f 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * capture_options_24_xpm[] = {
+static const char * capture_options_24_xpm[] = {
 "24 24 261 2",
 "      c None",
 ".     c #000000",
index 8b24e7d8e343171ca6946cb7c2e55bb466d74f23..099f1f86e5c827c1448cfcb518d0ad64a1224357 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * capture_restart_24_xpm[] = {
+static const char * capture_restart_24_xpm[] = {
 "24 24 270 2",
 "      c None",
 ".     c #000000",
index b511cdb6f51c5914fe26842fe858a968337f85af..2126d9f51a77494d758e6e4798d7907b7ade5869 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * capture_start_24_xpm[] = {
+static const char * capture_start_24_xpm[] = {
 "24 24 241 2",
 "      c None",
 ".     c #000000",
index e33bf5739fe779a5d7e3ffc98510943ed9cc762e..e3f8f1f5c9908e73f58ea4dbf967ef7eb2e058cd 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * capture_stop_24_xpm[] = {
+static const char * capture_stop_24_xpm[] = {
 "24 24 337 2",
 "      c None",
 ".     c #000000",
index c9805097b9cc4c50d950b4c53b93c60cab46cd6e..66e8047a0569148f3a90227dcd8504acd4078baa 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * checkbox_16_xpm[] = {
+static const char * checkbox_16_xpm[] = {
 "16 16 25 1",
 "      c None",
 ".     c #9D9D9D",
index 5da8971c45275e53f6220e8643faeeb5904382bf..fcb20c4b6e1ed06df51ba1063ffa330bf8bf24c9 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * colorize_24_xpm[] = {
+static const char * colorize_24_xpm[] = {
 "24 24 57 1",
 "      c None",
 ".     c #000000",
index 933d2bb0329c1d0cd8fd9cf42b19bd4315fa73b0..194ffd420cb0aeb3194c9935f3a1da153957f68a 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * conversations_16_xpm[] = {
+static const char * conversations_16_xpm[] = {
 "16 16 51 1",
 "      c None",
 ".     c #191918",
index b045610c0c393d0fd3b57820777be098b55c7b7e..6d704bf4e8cd251554cd1b2997936dde6b7a88b8 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * decode_as_16_xpm[] = {
+static const char * decode_as_16_xpm[] = {
 "16 16 6 1",
 "      c None",
 ".     c #000000",
index c782ae0154ad38a68c431b63540e42f3ba032be7..766ca62a9d12f9fbfe86e82ed8f0422d694ccfcc 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * display_filter_24_xpm[] = {
+static const char * display_filter_24_xpm[] = {
 "24 24 110 2",
 "      c None",
 ".     c #000000",
index 16cb287224757d118d9de0b4db8de41dee03c935..c0b39de6ba504e1e284bbd886f4ec901c9a88b8d 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * endpoints_16_xpm[] = {
+static const char * endpoints_16_xpm[] = {
 "16 16 49 1",
 "      c None",
 ".     c #79797C",
index d9faea30fff4b955a6ae845c705a3a1f6a61f3d3..383c06148164a7bba88efd8b40b82c87722d9f55 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * file_set_list_16_xpm[] = {
+static const char * file_set_list_16_xpm[] = {
 "16 16 37 1",
 "      c None",
 ".     c #000000",
index 90dfdcb97a7290086d5ce724873ea4d90d50979e..4a06c1420ae86b29b99b94bf55d0e118f6927a28 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * file_set_next_16_xpm[] = {
+static const char * file_set_next_16_xpm[] = {
 "16 16 42 1",
 "      c None",
 ".     c #000000",
index 6a65c413431e751690ac0a1038ddceaf8f12c268..0e09a8706bbf69447c607e086a439ef3fc19d826 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * file_set_previous_16_xpm[] = {
+static const char * file_set_previous_16_xpm[] = {
 "16 16 42 1",
 "      c None",
 ".     c #000000",
index ad8b0e2b09664b83b64f5dabc18778c553e39f4e..7b4c5392ce0838e679cc4899a509b0009b2a881f 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * graphs_16_xpm[] = {
+static const char * graphs_16_xpm[] = {
 "16 16 4 1",
 "      c None",
 ".     c #000000",
index 3860c563b3202512f2e3477a68412a9674becfce..3c78d380cea5c5d7fb3959e0161d58d4c4c0fd5e 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * internet_24_xpm[] = {
+static const char * internet_24_xpm[] = {
 "24 24 310 2",
 "      c None",
 ".     c #2D373E",
index 5aee2d6ade6681ca9f0f2d9404dd11c4d18f1713..f917c0f70c8ae9f0d99daff87c3ae00104201a17 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * resize_columns_24_xpm[] = {
+static const char * resize_columns_24_xpm[] = {
 "24 24 24 1",
 "      c None",
 ".     c #000000",
index 9aef1ef64cf03b924b05bf8cc7432c2754b80f3d..3f1981c939e8a95b022c96d8d931fc91197e9e62 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_add_24_xpm[] = {
+static const char * stock_add_24_xpm[] = {
 "24 24 24 1",
 "      c None",
 ".     c #000000",
index 13eb555648afbdb99b7931accc1d8d82cd0bab0c..28c0a8e0157db037e936a7100f9e5173daea0532 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_bottom_24_xpm[] = {
+static const char * stock_bottom_24_xpm[] = {
 "24 24 49 1",
 "      c None",
 ".     c #000000",
index b05c766a043025077e930bac29e6dd7ccfa32f24..9adcc03407669b2d0e8de61ca11e04908a161228 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_clear_24_xpm[] = {
+static const char * stock_clear_24_xpm[] = {
 "24 24 56 1",
 "      c None",
 ".     c #000000",
index 032cd950b335904bef2f5db7dd6510e7b51dbfc2..98699d55427f2a5a310389c03ecbd57c56feaade 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_close_24_xpm[] = {
+static const char * stock_close_24_xpm[] = {
 "24 24 2 1",
 "      c None",
 ".     c #000000",
index 4990f7d4bb6ec10eb46f4a25ff0ae29bdbbf270a..ef944251ada94d79066e1c3b34cde01b953e8162 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_colorselector_24_xpm[] = {
+static const char * stock_colorselector_24_xpm[] = {
 "24 24 223 2",
 "      c None",
 ".     c #000000",
index e2e13ff89ce03f0689df039c5f043a7fe9192605..0f4e210ff78fa628ece17bb7e64340be14bea92c 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_help_24_xpm[] = {
+static const char * stock_help_24_xpm[] = {
 "24 24 244 2",
 "      c None",
 ".     c #000000",
index d77c01d7daba7832a53ef43ec125554f0fb73d97..02702df7619613527f53d88fd0a33f7178e702ff 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_jump_to_24_xpm[] = {
+static const char * stock_jump_to_24_xpm[] = {
 "24 24 144 2",
 "      c None",
 ".     c #000000",
index 369da1c0fe7cbdd543aac6e62d4356e46051bc37..01d2daf997d9170b30f31ee84be74fa2546ff342 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_left_arrow_24_xpm[] = {
+static const char * stock_left_arrow_24_xpm[] = {
 "24 24 43 1",
 "      c None",
 ".     c #000000",
index 6771609f76dd90df322982b344a238a495046d5f..6e23c22e0fedb9efe1dd28dfa837d8b9a1fd8333 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_ok_20_xpm[] = {
+static const char * stock_ok_20_xpm[] = {
 "20 20 47 1",
 "      c None",
 ".     c #10120F",
index 70786ebe3c4e122e93f287ee04e959deb4dd0fb3..2204c247b5306f8dcb90c4e18db4597e4b80f696 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_open_24_xpm[] = {
+static const char * stock_open_24_xpm[] = {
 "24 24 173 2",
 "      c None",
 ".     c #000000",
index 376ca79266999cad911871bf8991c4fc8fef1442..cc93ad35a8c5290dd3748c99923079052f582beb 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_preferences_24_xpm[] = {
+static const char * stock_preferences_24_xpm[] = {
 "24 24 87 1",
 "      c None",
 ".     c #000000",
index 5e2254f20da309ce3e7ce85904c5fa08c4bdaa9a..b24a568a46e893c978126a6c572d9ba733f8f8b1 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_print_24_xpm[] = {
+static const char * stock_print_24_xpm[] = {
 "24 24 175 2",
 "      c None",
 ".     c #000000",
index a2d9cb6c24a8b8934bb91e13a33d7aa90492640b..8555658ed28701c87336a2863d7c7b60e1a6c09c 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_properties_24_xpm[] = {
+static const char * stock_properties_24_xpm[] = {
 "24 24 185 2",
 "      c None",
 ".     c #000000",
index 88a457d09de8047621b0feacd8599a278cca9f1f..72f180cc38f9e593c6bcca6170d5baf5ab9ab5ce 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_refresh_24_xpm[] = {
+static const char * stock_refresh_24_xpm[] = {
 "24 24 126 2",
 "      c None",
 ".     c #000000",
index dfac57b979f6484b3f0db5652e1b0b535bdde92d..28c7336537b43c0c96f4100ffc98be8baeb1327f 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_right_arrow_24_xpm[] = {
+static const char * stock_right_arrow_24_xpm[] = {
 "24 24 41 1",
 "      c None",
 ".     c #000000",
index 3c2a50795f60e5fe4c5c46453c8cf009ce132024..9e6ceb8cfe18bddfff0e4ecd259696e69f28e701 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_save_24_xpm[] = {
+static const char * stock_save_24_xpm[] = {
 "24 24 220 2",
 "      c None",
 ".     c #000000",
index e94f4495120fbc4fa2e3a94257841ac10ae56f10..a6620fd19b6c6b5b92d3d9e04b82567b4a00effe 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_save_as_24_xpm[] = {
+static const char * stock_save_as_24_xpm[] = {
 "24 24 262 2",
 "      c None",
 ".     c #000000",
index 59614e86bdfe667201e6b513e68123a0899da56b..a87cefebf01d1697e3fb523c43be37e46b81d365 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_search_24_xpm[] = {
+static const char * stock_search_24_xpm[] = {
 "24 24 207 2",
 "      c None",
 ".     c #000000",
index d5d51eecd833dfcaa6eff623424b0aba1b76ade4..f2dc8294bed74eef0bd4f5943fbfffcc70280dd3 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_stop_24_xpm[] = {
+static const char * stock_stop_24_xpm[] = {
 "24 24 258 2",
 "      c None",
 ".     c #010000",
index 3c1c687f31b4724c6d65325df1eb747af4455e30..3cc7a3613b64f2d50410f97e23138552a0734200 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_top_24_xpm[] = {
+static const char * stock_top_24_xpm[] = {
 "24 24 51 1",
 "      c None",
 ".     c #000000",
index 9bd5c6657b7ce75696837d5605143c28b5b277cd..f4675dcb1892c71fde7b7060c5f95b1b04ec916a 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_zoom_1_24_xpm[] = {
+static const char * stock_zoom_1_24_xpm[] = {
 "24 24 136 2",
 "      c None",
 ".     c #343434",
index cb62c924a3283414f84bd139e105633a714d9546..a6f2114242529693a9032ac3fc8761c5b7e28b3e 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_zoom_in_24_xpm[] = {
+static const char * stock_zoom_in_24_xpm[] = {
 "24 24 132 2",
 "      c None",
 ".     c #343434",
index c3bc8069d54caaceb55f0a84731fa536e085cf4a..c03b0df759fbdb41a15afc0863c35d8f0024bba2 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * stock_zoom_out_24_xpm[] = {
+static const char * stock_zoom_out_24_xpm[] = {
 "24 24 131 2",
 "      c None",
 ".     c #343434",
index 246e4920282a23c650e15de229f3d8918b2edef7..a2fb5bb1ef1bf149b9d8b90bb273656137e995f7 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * telephony_16_xpm[] = {
+static const char * telephony_16_xpm[] = {
 "16 16 87 1",
 "      c None",
 ".     c #000000",
index ada7a6a62d01a9a59f161dfb14de2f0428d616d6..97eb497f7db072f33e1df74cfe8350b731313511 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * time_24_xpm[] = {
+static const char * time_24_xpm[] = {
 "24 24 92 2",
 "      c None",
 ".     c #000000",
index 43e76a949ea014d00445785969fdc7a5629d0a49..17f60585de1ba934a7d3dfcccf32d8595600f552 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * web_support_24_xpm[] = {
+static const char * web_support_24_xpm[] = {
 "24 24 383 2",
 "      c None",
 ".     c #010101",
index 618c4e707828e2286113e66fefecc727a012d00a..7299ebdcb7854c096d68254bc5b7f96fcb539db4 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * wiki_24_xpm[] = {
+static const char * wiki_24_xpm[] = {
 "24 24 305 2",
 "      c None",
 ".     c #2D373E",
index a33294ca5d00467b9599a1c48d8245c5c362ab2f..11c80ae4484fb1c937b0f12da133982d058cbc03 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char *up_arrow[] = {
+static const char *up_arrow[] = {
 /* width height num_colors chars_per_pixel */
 "    11    12        2            1",
 /* colors */
index 34d6194d00cd772e0e312a981d54aa7fbd606ba9..5eccf454fa1cbb92a24404e19fa14ce7923a4033 100644 (file)
@@ -51,7 +51,7 @@ static const gchar* port_type_to_str (port_type type) {
 
 /* ip host stats_tree -- basic test */
 static int st_node_ip = -1;
-static gchar* st_str_ip = "IP address";
+static const gchar* st_str_ip = "IP address";
 
 static void ip_hosts_stats_tree_init(stats_tree* st) {
        st_node_ip = stats_tree_create_node(st, st_str_ip, 0, TRUE);    
@@ -73,7 +73,7 @@ static int ip_hosts_stats_tree_packet(stats_tree *st  , packet_info *pinfo, epan
 
 /* packet type stats_tree -- test pivot node */
 static int st_node_ptype = -1;
-static gchar* st_str_ptype = "Port Type";
+static const gchar* st_str_ptype = "Port Type";
 
 static void ptype_stats_tree_init(stats_tree* st) {
        st_node_ptype = stats_tree_create_pivot(st, st_str_ptype, 0);
@@ -91,7 +91,7 @@ static int ptype_stats_tree_packet(stats_tree* st, packet_info* pinfo, epan_diss
 
 /* packet length stats_tree -- test range node */ 
 static int st_node_plen = -1;
-static gchar* st_str_plen = "Packet Length";
+static const gchar* st_str_plen = "Packet Length";
 
 static void plen_stats_tree_init(stats_tree* st) {
        st_node_plen = stats_tree_create_range_node(st, st_str_plen, 0, "0-19","20-39","40-79","80-159","160-319","320-639","640-1279","1280-",NULL);
@@ -111,7 +111,7 @@ static int plen_stats_tree_packet(stats_tree* st, packet_info* pinfo, epan_disse
 
 */
 static int st_node_dsts = -1;
-static gchar* st_str_dsts = "Destinations";
+static const gchar* st_str_dsts = "Destinations";
 
 static void dsts_stats_tree_init(stats_tree* st) {
        st_node_dsts = stats_tree_create_node(st, st_str_dsts, 0, TRUE);        
index 0116eae5957b4b66bfe009bfc4a1c7ba768f392f..35331b9b98abf300cbe80659dc2dc5cef2024c3c 100644 (file)
  */
 
 typedef struct _tap_dfilter_dlg {
-       char *win_title;        /* title */
-       char *init_string;      /* the string to call the tap without a filter via "-z" option */
+       const char *win_title;          /* title */
+       const char *init_string;        /* the string to call the tap without a filter via "-z" option */
        void (* tap_init_cb)(char *);   /* callback to init function of the tap */
-       gint index;             /* initiate this value always with "-1" */
+       gint index;                     /* initiate this value always with "-1" */
 } tap_dfilter_dlg;
 
 /* This will update the titles of the dialog windows when we load a new capture file. */