Constify some character pointer variables to avoid warnings about
strings being assigned to them. svn path=/trunk/; revision=46653
This commit is contained in:
parent
14d5511143
commit
e2b61c828f
|
@ -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;
|
||||
|
|
|
@ -134,7 +134,7 @@ dissect_ax25( tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree )
|
|||
int via_index;
|
||||
char *info_buffer;
|
||||
/* char v2cmdresp; */
|
||||
char *ax25_version;
|
||||
const char *ax25_version;
|
||||
int is_response;
|
||||
const guint8 *src_addr;
|
||||
const guint8 *dst_addr;
|
||||
|
|
|
@ -4612,7 +4612,7 @@ dissect_ber_UTCTime(gboolean implicit_tag, asn1_ctx_t *actx, proto_tree *tree, t
|
|||
int hoffset;
|
||||
proto_item *cause;
|
||||
proto_tree *error_tree;
|
||||
gchar *error_str = NULL;
|
||||
const gchar *error_str = NULL;
|
||||
|
||||
if (!implicit_tag) {
|
||||
hoffset = offset;
|
||||
|
|
Loading…
Reference in New Issue