diff options
author | Jörg Mayer <jmayer@loplof.de> | 2004-01-25 17:33:20 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2004-01-25 17:33:20 +0000 |
commit | 4189858920a7b17853437c79ccf3c14a087ce158 (patch) | |
tree | dbda2b4a8f48e160122e544312a04429c0376849 /epan/ftypes/ftype-pcre.c | |
parent | 111f977cfa71ded320833bf0a103dace671fc824 (diff) |
Fix 'warning: cast discards qualifiers from pointer target type' by removing cast
svn path=/trunk/; revision=9845
Diffstat (limited to 'epan/ftypes/ftype-pcre.c')
-rwxr-xr-x | epan/ftypes/ftype-pcre.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/ftypes/ftype-pcre.c b/epan/ftypes/ftype-pcre.c index 079adddb7b..d22b4a261c 100755 --- a/epan/ftypes/ftype-pcre.c +++ b/epan/ftypes/ftype-pcre.c @@ -1,5 +1,5 @@ /* - * $Id: ftype-pcre.c,v 1.1 2003/12/09 23:02:39 obiot Exp $ + * $Id: ftype-pcre.c,v 1.2 2004/01/25 17:33:20 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -57,8 +57,8 @@ pcre_tuple_new(const char *value) ); if (pcre_error_text) { tuple->error = g_strdup_printf("In regular expression \"%s\":\n" - "%s (character position %u)", - (char *)value, pcre_error_text, pcre_error_offset); + "%s (character position %d)", + value, pcre_error_text, pcre_error_offset); return tuple; } else { tuple->error = NULL; @@ -69,11 +69,11 @@ pcre_tuple_new(const char *value) if (tuple->error) { tuple->error = g_strdup_printf("In regular expression \"%s\":\n" "%s. %s", - (char *)value, tuple->error, pcre_error_text); + value, tuple->error, pcre_error_text); } else { tuple->error = g_strdup_printf("In regular expression \"%s\":\n" "%s", - (char *)value, pcre_error_text); + value, pcre_error_text); } } return tuple; |