summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-05-22 10:36:49 +0200
committerPeter Eisentraut <peter@eisentraut.org>2020-05-22 10:36:49 +0200
commit574925bfd0a8175f6e161936ea11d9695677ba09 (patch)
tree267347d8c0a9710f7fe4f7cc5e7b3ca6c5ec424b /src
parentbb2ae6fa47e5d84b6c5a9e3845021e7df031ec32 (diff)
Remove unnecessary cast
Probably copied from nearby calls where it is necessary. But this one also casts away constness, so it was doubly annoying.
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/backup_manifest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/backup_manifest.c b/src/backend/replication/backup_manifest.c
index 9fc0e179ff0..807c5f16b4f 100644
--- a/src/backend/replication/backup_manifest.c
+++ b/src/backend/replication/backup_manifest.c
@@ -135,7 +135,7 @@ AddFileToBackupManifest(backup_manifest_info *manifest, const char *spcoid,
{
appendStringInfoString(&buf, "{ \"Encoded-Path\": \"");
enlargeStringInfo(&buf, 2 * pathlen);
- buf.len += hex_encode((char *) pathname, pathlen,
+ buf.len += hex_encode(pathname, pathlen,
&buf.data[buf.len]);
appendStringInfoString(&buf, "\", ");
}