projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2ae6f
)
Remove unnecessary cast
author
Peter Eisentraut
Fri, 22 May 2020 08:36:49 +0000
(10:36 +0200)
committer
Peter Eisentraut
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/backup_manifest.c
b/src/backend/replication/backup_manifest.c
index 9fc0e179ff0e18c622d4f67ce4b09dbd7b00b481..807c5f16b4f3e59cf9f8fd855a637ed3f4edbe54 100644
(file)
--- 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, "\", ");
}