aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-10 10:20:20 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-10 10:20:20 +0000
commit8fca2eb7e586c88354210e58cf22bac4d4fddd8d (patch)
tree1097c70646c5581b4009674b268491a9ca342c60
parenta125dc89b7b5944679d957769c9da22e53a4d8e9 (diff)
Add missing consts.
svn path=/trunk/; revision=42004
-rw-r--r--epan/dfilter/semcheck.c2
-rw-r--r--epan/dissectors/packet-bootp.c2
-rw-r--r--epan/dissectors/packet-tcp.c2
-rw-r--r--epan/dissectors/packet-uaudp.c8
-rw-r--r--plugins/wimax/mac_hd_type1_decoder.c2
-rw-r--r--plugins/wimax/mac_hd_type2_decoder.c2
-rw-r--r--plugins/wimax/mac_mgmt_msg_decoder.c2
-rw-r--r--ui/gtk/summary_dlg.c2
8 files changed, 11 insertions, 11 deletions
diff --git a/epan/dfilter/semcheck.c b/epan/dfilter/semcheck.c
index 5b6c5bc5f9..54349a4df0 100644
--- a/epan/dfilter/semcheck.c
+++ b/epan/dfilter/semcheck.c
@@ -244,7 +244,7 @@ mk_fvalue_from_val_string(header_field_info *hfinfo, char *s)
else {
const value_string *vals = hfinfo->strings;
if (hfinfo->display & BASE_EXT_STRING)
- vals = VALUE_STRING_EXT_VS_P((value_string_ext *) vals);
+ vals = VALUE_STRING_EXT_VS_P((const value_string_ext *) vals);
while (vals->strptr != NULL) {
if (g_ascii_strcasecmp(s, vals->strptr) == 0) {
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c
index 3955befc51..9dde51b54c 100644
--- a/epan/dissectors/packet-bootp.c
+++ b/epan/dissectors/packet-bootp.c
@@ -1104,7 +1104,7 @@ static guint num_bootp_records_uat = 0;
static void* uat_bootp_record_copy_cb(void* n, const void* o, size_t siz _U_) {
uat_bootp_record_t* new_record = (uat_bootp_record_t *)n;
- const uat_bootp_record_t* old_record = (uat_bootp_record_t *)o;
+ const uat_bootp_record_t* old_record = (const uat_bootp_record_t *)o;
if (old_record->text) {
new_record->text = g_strdup(old_record->text);
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c
index 51fedbf93a..2ea51ea075 100644
--- a/epan/dissectors/packet-tcp.c
+++ b/epan/dissectors/packet-tcp.c
@@ -2920,7 +2920,7 @@ dissect_tcpopt_scps(const ip_tcp_opt *optp _U_, tvbuff_t *tvb,
struct capvec
{
guint8 mask;
- gchar *str;
+ const gchar *str;
} capvecs[] = {
{0x80, "BETS"},
{0x40, "SNACK1"},
diff --git a/epan/dissectors/packet-uaudp.c b/epan/dissectors/packet-uaudp.c
index c0ae16b5ed..8fca31232d 100644
--- a/epan/dissectors/packet-uaudp.c
+++ b/epan/dissectors/packet-uaudp.c
@@ -118,10 +118,10 @@ static dissector_handle_t ua_term_to_sys_handle;
typedef struct
{
- char *name;
- char *text;
- guint port;
- guint last_port;
+ const char *name;
+ const char *text;
+ guint port;
+ guint last_port;
} prefs_uaudp_t;
#define MAX_TERMINAL_PORTS 4
diff --git a/plugins/wimax/mac_hd_type1_decoder.c b/plugins/wimax/mac_hd_type1_decoder.c
index 18bcbedd28..17b8215947 100644
--- a/plugins/wimax/mac_hd_type1_decoder.c
+++ b/plugins/wimax/mac_hd_type1_decoder.c
@@ -66,7 +66,7 @@ enum
TYPE_I_SUBTYPE_MAX
} TYPE_I_SUBTYPE;
-static char *type1_subtype_abbrv[TYPE_I_SUBTYPE_MAX] =
+static const char *type1_subtype_abbrv[TYPE_I_SUBTYPE_MAX] =
{
"BR INCREMENTAL", /* 0 */
"BR AGGREGATE", /* 1 */
diff --git a/plugins/wimax/mac_hd_type2_decoder.c b/plugins/wimax/mac_hd_type2_decoder.c
index d9eaf63858..908fc1d3dd 100644
--- a/plugins/wimax/mac_hd_type2_decoder.c
+++ b/plugins/wimax/mac_hd_type2_decoder.c
@@ -72,7 +72,7 @@ enum
TYPE_II_FB_TYPE_MAX
} TYPE_II_FB_TYPE;
-static char *type2_fb_type_abbrv[TYPE_II_FB_TYPE_MAX] =
+static const char *type2_fb_type_abbrv[TYPE_II_FB_TYPE_MAX] =
{
"CQI and MIMO Feedback",
"DL average CINR",
diff --git a/plugins/wimax/mac_mgmt_msg_decoder.c b/plugins/wimax/mac_mgmt_msg_decoder.c
index 2aa0c8a50c..fb34d9f250 100644
--- a/plugins/wimax/mac_mgmt_msg_decoder.c
+++ b/plugins/wimax/mac_mgmt_msg_decoder.c
@@ -111,7 +111,7 @@ static gint proto_mac_mgmt_msg_decoder = -1;
static gint ett_mac_mgmt_msg_decoder = -1;
/* WIMAX MAC Management message type info */
-char *mgt_msg_abbrv[MAC_MGMT_MSG_TYPE_MAX] =
+static const char *mgt_msg_abbrv[MAC_MGMT_MSG_TYPE_MAX] =
{
"UCD", /* 0 */
"DCD",
diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c
index da70072263..a4eb604e61 100644
--- a/ui/gtk/summary_dlg.c
+++ b/ui/gtk/summary_dlg.c
@@ -90,7 +90,7 @@ add_string_to_table_sensitive(GtkWidget *list, guint *row, const gchar *title, c
}
static void
-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)
{
add_string_to_table_sensitive(list, row, title, value, TRUE);
}