1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-08 22:02:03 +03:00

Cast some printf arguments to avoid possibly-nonportable behavior.

Per compiler warnings on buildfarm member black_firefly.
This commit is contained in:
Tom Lane 2012-03-23 20:18:08 -04:00
parent 10b2e7404f
commit eca0c389f1

View File

@ -846,7 +846,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);