Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commited61127

Browse files
committed
Cast some printf arguments to avoid possibly-nonportable behavior.
Per compiler warnings on buildfarm member black_firefly.
1 parent81a646f commited61127

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)

[8]ページ先頭

©2009-2025 Movatter.jp