Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2025-02-12 07:49:18 +0000
committerPeter Eisentraut2025-02-12 07:49:18 +0000
commit506183bce73a2b22308a54876f0a56a249bc26e9 (patch)
treec013b5d6db58d6af03dd3707c8b8b42567d91a8d /doc/src/sgml/gist.sgml
parent0bc34ad69204dded9cd06d03c3ced656eb137dc3 (diff)
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 'doc/src/sgml/gist.sgml')
-rw-r--r--doc/src/sgml/gist.sgml2
1 files changed, 1 insertions, 1 deletions
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;