diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-02-12 08:49:18 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-02-12 08:49:18 +0100 |
commit | 506183bce73a2b22308a54876f0a56a249bc26e9 (patch) | |
tree | c013b5d6db58d6af03dd3707c8b8b42567d91a8d /contrib/fuzzystrmatch | |
parent | 0bc34ad69204dded9cd06d03c3ced656eb137dc3 (diff) | |
download | postgresql-506183bce73a2b22308a54876f0a56a249bc26e9.tar.gz postgresql-506183bce73a2b22308a54876f0a56a249bc26e9.zip |
Remove unnecessary (char *) casts [string]
Remove (char *) casts around string functions where the arguments or
result already have the right type and the cast is useless (or worse,
potentially casts away a qualifier, but this doesn't appear to be the
case here).
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
Diffstat (limited to 'contrib/fuzzystrmatch')
-rw-r--r-- | contrib/fuzzystrmatch/dmetaphone.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/fuzzystrmatch/dmetaphone.c b/contrib/fuzzystrmatch/dmetaphone.c index f8f2c2b447d..6627b2b8943 100644 --- a/contrib/fuzzystrmatch/dmetaphone.c +++ b/contrib/fuzzystrmatch/dmetaphone.c @@ -308,13 +308,13 @@ IsVowel(metastring *s, int pos) static int SlavoGermanic(metastring *s) { - if ((char *) strstr(s->str, "W")) + if (strstr(s->str, "W")) return 1; - else if ((char *) strstr(s->str, "K")) + else if (strstr(s->str, "K")) return 1; - else if ((char *) strstr(s->str, "CZ")) + else if (strstr(s->str, "CZ")) return 1; - else if ((char *) strstr(s->str, "WITZ")) + else if (strstr(s->str, "WITZ")) return 1; else return 0; |