Commit ed61127b authored by Tom Lane's avatar Tom Lane

Cast some printf arguments to avoid possibly-nonportable behavior.

Per compiler warnings on buildfarm member black_firefly.
parent 81a646fe
...@@ -867,7 +867,7 @@ _tarWriteHeader(const char *filename, const char *linktarget, ...@@ -867,7 +867,7 @@ _tarWriteHeader(const char *filename, const char *linktarget,
} }
/* Mode 8 */ /* Mode 8 */
sprintf(&h[100], "%07o ", statbuf->st_mode); sprintf(&h[100], "%07o ", (int) statbuf->st_mode);
/* User ID 8 */ /* User ID 8 */
sprintf(&h[108], "%07o ", statbuf->st_uid); sprintf(&h[108], "%07o ", statbuf->st_uid);
......
...@@ -1103,7 +1103,7 @@ BaseBackup(void) ...@@ -1103,7 +1103,7 @@ BaseBackup(void)
if (r != bgchild) if (r != bgchild)
{ {
fprintf(stderr, _("%s: child %i died, expected %i\n"), fprintf(stderr, _("%s: child %i died, expected %i\n"),
progname, r, bgchild); progname, r, (int) bgchild);
disconnect_and_exit(1); disconnect_and_exit(1);
} }
if (!WIFEXITED(status)) if (!WIFEXITED(status))
......
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