Skip to content

Commit 574925b

Browse files
committed
Remove unnecessary cast
Probably copied from nearby calls where it is necessary. But this one also casts away constness, so it was doubly annoying.
1 parent bb2ae6f commit 574925b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/backup_manifest.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ AddFileToBackupManifest(backup_manifest_info *manifest, const char *spcoid,
135135
{
136136
appendStringInfoString(&buf, "{ \"Encoded-Path\": \"");
137137
enlargeStringInfo(&buf, 2 * pathlen);
138-
buf.len += hex_encode((char *) pathname, pathlen,
138+
buf.len += hex_encode(pathname, pathlen,
139139
&buf.data[buf.len]);
140140
appendStringInfoString(&buf, "\", ");
141141
}

0 commit comments

Comments
 (0)