Commit 574925bf authored by Peter Eisentraut's avatar Peter Eisentraut

Remove unnecessary cast

Probably copied from nearby calls where it is necessary.  But this one
also casts away constness, so it was doubly annoying.
parent bb2ae6fa
...@@ -135,7 +135,7 @@ AddFileToBackupManifest(backup_manifest_info *manifest, const char *spcoid, ...@@ -135,7 +135,7 @@ AddFileToBackupManifest(backup_manifest_info *manifest, const char *spcoid,
{ {
appendStringInfoString(&buf, "{ \"Encoded-Path\": \""); appendStringInfoString(&buf, "{ \"Encoded-Path\": \"");
enlargeStringInfo(&buf, 2 * pathlen); enlargeStringInfo(&buf, 2 * pathlen);
buf.len += hex_encode((char *) pathname, pathlen, buf.len += hex_encode(pathname, pathlen,
&buf.data[buf.len]); &buf.data[buf.len]);
appendStringInfoString(&buf, "\", "); appendStringInfoString(&buf, "\", ");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment