diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-12-21 05:34:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-12-21 05:34:38 +0000 |
commit | e2b61c828f586997857d72345cd1f00a5ac3596b (patch) | |
tree | 3fcc867b9d1a07a39fc89c48cc31f15bcfa7ce3e /epan/dissectors/packet-aprs.c | |
parent | 14d5511143598633e689b718d4e4aa91913e6dfd (diff) |
Constify some character pointer variables to avoid warnings about
strings being assigned to them.
svn path=/trunk/; revision=46653
Diffstat (limited to 'epan/dissectors/packet-aprs.c')
-rw-r--r-- | epan/dissectors/packet-aprs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-aprs.c b/epan/dissectors/packet-aprs.c index 0c868ade64..a5d762c565 100644 --- a/epan/dissectors/packet-aprs.c +++ b/epan/dissectors/packet-aprs.c @@ -438,8 +438,8 @@ static const mic_e_dst_code_table_s dst_code[] = /* MIC-E message table */ typedef struct { - char *std; - char *custom; + const char *std; + const char *custom; } mic_e_msg_table_s; static const mic_e_msg_table_s mic_e_msg_table[] = @@ -852,7 +852,7 @@ dissect_aprs_storm( tvbuff_t *tvb, proto_tree *tc; int data_len; char *info_buffer; - static char *storm_format = " (%*.*s)"; + static const char *storm_format = " (%*.*s)"; data_len = tvb_length_remaining( tvb, offset ); info_buffer = ep_alloc( STRLEN ); @@ -897,7 +897,7 @@ dissect_aprs_weather( tvbuff_t *tvb, int new_offset; int data_len; char *info_buffer; - static char *weather_format = " (%*.*s)"; + static const char *weather_format = " (%*.*s)"; guint8 ch; @@ -1019,7 +1019,7 @@ static int aprs_timestamp( proto_tree *aprs_tree, tvbuff_t *tvb, int offset ) { int data_len; - char *tzone; + const char *tzone; guint8 ch; data_len = 8; |