projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b2e74
)
Cast some printf arguments to avoid possibly-nonportable behavior.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 24 Mar 2012 00:18:08 +0000
(20:18 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 24 Mar 2012 00:18:08 +0000
(20:18 -0400)
Per compiler warnings on buildfarm member black_firefly.
src/backend/replication/basebackup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/basebackup.c
b/src/backend/replication/basebackup.c
index 47e7cb4bd2f0bfa94a960e640e30cc9cac0935b9..fb656441b34b9c787e39f22558fcea186376e89b 100644
(file)
--- a/
src/backend/replication/basebackup.c
+++ b/
src/backend/replication/basebackup.c
@@
-846,7
+846,7
@@
_tarWriteHeader(const char *filename, const char *linktarget,
}
/* Mode 8 */
- sprintf(&h[100], "%07o ", statbuf->st_mode);
+ sprintf(&h[100], "%07o ",
(int)
statbuf->st_mode);
/* User ID 8 */
sprintf(&h[108], "%07o ", statbuf->st_uid);