aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/walreceiverfuncs.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-02-12 08:49:18 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-02-12 08:49:18 +0100
commit506183bce73a2b22308a54876f0a56a249bc26e9 (patch)
treec013b5d6db58d6af03dd3707c8b8b42567d91a8d /src/backend/replication/walreceiverfuncs.c
parent0bc34ad69204dded9cd06d03c3ced656eb137dc3 (diff)
downloadpostgresql-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 'src/backend/replication/walreceiverfuncs.c')
-rw-r--r--src/backend/replication/walreceiverfuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/walreceiverfuncs.c b/src/backend/replication/walreceiverfuncs.c
index e7eb3ac12a4..8de2886ff0b 100644
--- a/src/backend/replication/walreceiverfuncs.c
+++ b/src/backend/replication/walreceiverfuncs.c
@@ -267,7 +267,7 @@ RequestXLogStreaming(TimeLineID tli, XLogRecPtr recptr, const char *conninfo,
walrcv->walRcvState == WALRCV_WAITING);
if (conninfo != NULL)
- strlcpy((char *) walrcv->conninfo, conninfo, MAXCONNINFO);
+ strlcpy(walrcv->conninfo, conninfo, MAXCONNINFO);
else
walrcv->conninfo[0] = '\0';
@@ -279,7 +279,7 @@ RequestXLogStreaming(TimeLineID tli, XLogRecPtr recptr, const char *conninfo,
*/
if (slotname != NULL && slotname[0] != '\0')
{
- strlcpy((char *) walrcv->slotname, slotname, NAMEDATALEN);
+ strlcpy(walrcv->slotname, slotname, NAMEDATALEN);
walrcv->is_temp_slot = false;
}
else