Remove unnecessary cast

Probably copied from nearby calls where it is necessary.  But this one
also casts away constness, so it was doubly annoying.
pull/55/head
Peter Eisentraut 5 years ago
parent bb2ae6fa47
commit 574925bfd0
  1. 2
      src/backend/replication/backup_manifest.c

@ -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, "\", ");
} }

Loading…
Cancel
Save