diff options
author | Jörg Mayer <jmayer@loplof.de> | 2005-07-23 11:41:25 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2005-07-23 11:41:25 +0000 |
commit | 30a855786822f15108e3a9d4dbd5579cd656abba (patch) | |
tree | 88cde02c2a8b79acb9a58e94d44b2cc686e12e9e /plugins/mgcp | |
parent | cb4ac62893d38d74efc89f5d5c90c7451dc421a4 (diff) |
More 'char*' -> 'const char*' changes to fix warnings.
svn path=/trunk/; revision=15015
Diffstat (limited to 'plugins/mgcp')
-rw-r--r-- | plugins/mgcp/packet-mgcp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c index cf2a7d0087..e53b4b126e 100644 --- a/plugins/mgcp/packet-mgcp.c +++ b/plugins/mgcp/packet-mgcp.c @@ -268,7 +268,7 @@ static int callagent_tcp_port = 0; static int callagent_udp_port = 0; /* Some basic utility functions that are specific to this dissector */ -static gboolean is_mgcp_verb(tvbuff_t *tvb, gint offset, gint maxlength, gchar **verb_name); +static gboolean is_mgcp_verb(tvbuff_t *tvb, gint offset, gint maxlength, const gchar **verb_name); static gboolean is_mgcp_rspcode(tvbuff_t *tvb, gint offset, gint maxlength); static gint tvb_parse_param(tvbuff_t *tvb, gint offset, gint maxlength, int** hf); @@ -345,7 +345,7 @@ static void dissect_mgcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint32 num_messages; gint tvb_sectionend,tvb_sectionbegin, tvb_len, tvb_current_len; proto_tree *mgcp_tree, *ti; - gchar *verb_name = ""; + const gchar *verb_name = ""; /* Initialize variables */ tvb_sectionend = 0; @@ -451,7 +451,7 @@ static void dissect_mgcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree * gint sectionlen; gint tvb_sectionend,tvb_sectionbegin, tvb_len, tvb_current_len; tvbuff_t *next_tvb; - gchar *verb_name = ""; + const gchar *verb_name = ""; /* Initialise stat info for passing to tap */ pi_current++; @@ -950,7 +950,7 @@ void proto_reg_handoff_mgcp(void) * * Return: TRUE if there is an MGCP verb at offset in tvb, otherwise FALSE */ -static gboolean is_mgcp_verb(tvbuff_t *tvb, gint offset, gint maxlength, gchar **verb_name) +static gboolean is_mgcp_verb(tvbuff_t *tvb, gint offset, gint maxlength, const gchar **verb_name) { int returnvalue = FALSE; guint8 word[5]; @@ -1321,7 +1321,7 @@ static void dissect_mgcp_firstline(tvbuff_t *tvb, packet_info *pinfo, proto_tree mgcp_call_t *mgcp_call = NULL; nstime_t delta; gint rspcode = 0; - gchar *verb_description = ""; + const gchar *verb_description = ""; char code_with_verb[64] = ""; /* To fit "<4-letter-code> (<longest-verb>)" */ static address null_address = { AT_NONE, 0, NULL }; |