From 506183bce73a2b22308a54876f0a56a249bc26e9 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 12 Feb 2025 08:49:18 +0100 Subject: 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 Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org --- doc/src/sgml/gist.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml index 99098ab2522..df4afaa2e77 100644 --- a/doc/src/sgml/gist.sgml +++ b/doc/src/sgml/gist.sgml @@ -1027,7 +1027,7 @@ fill_my_string_relopt(const char *value, void *ptr) int len = strlen(tmp); if (ptr) - strcpy((char *) ptr, tmp); + strcpy(ptr, tmp); pfree(tmp); return len + 1; -- cgit v1.2.3