From: Peter Eisentraut Date: Fri, 22 May 2020 08:36:49 +0000 (+0200) Subject: Remove unnecessary cast X-Git-Tag: REL_13_BETA2~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=574925bfd0a8175f6e161936ea11d9695677ba09;p=thirdparty%2Fpostgresql.git Remove unnecessary cast Probably copied from nearby calls where it is necessary. But this one also casts away constness, so it was doubly annoying. --- 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, "\", "); }