aboutsummaryrefslogtreecommitdiffstats
path: root/epan/value_string.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-06-26 11:40:26 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-06-26 11:40:26 +0000
commit6c3b559e21b7435fea66ab1f87db55761790670a (patch)
tree2f5fb4dc9bb6630ccc49c4677a6449958e8e456a /epan/value_string.c
parentba1d304f7afcba778874b1349416207e031310c1 (diff)
value_string.c(71) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14784
Diffstat (limited to 'epan/value_string.c')
-rw-r--r--epan/value_string.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/value_string.c b/epan/value_string.c
index f2e6b96147..e7aa117159 100644
--- a/epan/value_string.c
+++ b/epan/value_string.c
@@ -49,6 +49,7 @@ val_to_str(guint32 val, const value_string *vs, const char *fmt) {
ret = match_strval(val, vs);
if (ret != NULL)
return ret;
+
if (cur == &str[0][0]) {
cur = &str[1][0];
} else if (cur == &str[1][0]) {
@@ -68,7 +69,10 @@ match_strval(guint32 val, const value_string *vs) {
while (vs[i].strptr) {
if (vs[i].value == val)
- return(vs[i].strptr);
+ /* XXX - the correct implementation would be to use the return type:
+ "const gchar *", but this would require to change most calls of this
+ function which are (directly and indirectly) *a lot* */
+ return( (gchar *) vs[i].strptr);
i++;
}