diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-06-26 11:18:47 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-06-26 11:18:47 +0000 |
commit | 0265375589d6afeedcc5842342e556df3eae3266 (patch) | |
tree | d41a19d24e0cecc0a75f208a08d65338c9992726 /epan/dissectors/packet-pgsql.c | |
parent | 10ffd2da48d601ae4f1548a4028015195d605141 (diff) |
packet-pgsql.c(891) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14779
Diffstat (limited to 'epan/dissectors/packet-pgsql.c')
-rw-r--r-- | epan/dissectors/packet-pgsql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-pgsql.c b/epan/dissectors/packet-pgsql.c index 053289cc9b..1d9264ac1a 100644 --- a/epan/dissectors/packet-pgsql.c +++ b/epan/dissectors/packet-pgsql.c @@ -88,7 +88,7 @@ static void dissect_pgsql_fe_msg(guchar, guint, tvbuff_t *, gint, proto_tree *); static void dissect_pgsql_be_msg(guchar, guint, tvbuff_t *, gint, proto_tree *); static void dissect_pgsql_msg(tvbuff_t *, packet_info *, proto_tree *); static void dissect_pgsql(tvbuff_t *, packet_info *, proto_tree *); -static char *identify(gboolean, guchar); +static const char *identify(gboolean, guchar); static guint pgsql_length(tvbuff_t *, int); static const value_string auth_types[] = { @@ -370,7 +370,7 @@ dissect_pgsql_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) gint n; guchar type; - char *typestr; + const char *typestr; guint length; gboolean info = check_col(pinfo->cinfo, COL_INFO); gboolean fe = (pinfo->match_port == pinfo->destport); @@ -876,7 +876,7 @@ static void dissect_pgsql_be_msg(guchar type, guint length, tvbuff_t *tvb, directly because of messages without type bytes, and because the type interpretation depends on fe. */ -static char *identify(gboolean fe, guchar type) +static const char *identify(gboolean fe, guchar type) { int i = 0; const value_string *messages; |