Remove unnecessary cast
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 22 May 2020 08:36:49 +0000 (10:36 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 22 May 2020 08:36:49 +0000 (10:36 +0200)
Probably copied from nearby calls where it is necessary.  But this one
also casts away constness, so it was doubly annoying.

src/backend/replication/backup_manifest.c

index 9fc0e179ff0e18c622d4f67ce4b09dbd7b00b481..807c5f16b4f3e59cf9f8fd855a637ed3f4edbe54 100644 (file)
@@ -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, "\", ");
    }