diff options
author | Peter Eisentraut | 2025-02-12 07:49:18 +0000 |
---|---|---|
committer | Peter Eisentraut | 2025-02-12 07:49:18 +0000 |
commit | 506183bce73a2b22308a54876f0a56a249bc26e9 (patch) | |
tree | c013b5d6db58d6af03dd3707c8b8b42567d91a8d /src/interfaces/ecpg | |
parent | 0bc34ad69204dded9cd06d03c3ced656eb137dc3 (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 'src/interfaces/ecpg')
-rw-r--r-- | src/interfaces/ecpg/pgtypeslib/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/common.c b/src/interfaces/ecpg/pgtypeslib/common.c index 8972229ca2f..c9e9a55c6a7 100644 --- a/src/interfaces/ecpg/pgtypeslib/common.c +++ b/src/interfaces/ecpg/pgtypeslib/common.c @@ -19,7 +19,7 @@ pgtypes_alloc(long size) char * pgtypes_strdup(const char *str) { - char *new = (char *) strdup(str); + char *new = strdup(str); if (!new) errno = ENOMEM; |