Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ed61127

Browse files
committed
Cast some printf arguments to avoid possibly-nonportable behavior.
Per compiler warnings on buildfarm member black_firefly.
1 parent 81a646f commit ed61127

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/replication/basebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ _tarWriteHeader(const char *filename, const char *linktarget,
867867
}
868868

869869
/* Mode 8 */
870-
sprintf(&h[100], "%07o ", statbuf->st_mode);
870+
sprintf(&h[100], "%07o ", (int) statbuf->st_mode);
871871

872872
/* User ID 8 */
873873
sprintf(&h[108], "%07o ", statbuf->st_uid);

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ BaseBackup(void)
11031103
if (r != bgchild)
11041104
{
11051105
fprintf(stderr, _("%s: child %i died, expected %i\n"),
1106-
progname, r, bgchild);
1106+
progname, r, (int) bgchild);
11071107
disconnect_and_exit(1);
11081108
}
11091109
if (!WIFEXITED(status))

0 commit comments

Comments
 (0)