svndump.c: Fix a printf format compiler warning

In particular, on systems that define uint32_t as an unsigned long,
gcc complains as follows:

        CC vcs-svn/svndump.o
    vcs-svn/svndump.c: In function `svndump_read':
    vcs-svn/svndump.c:215: warning: int format, uint32_t arg (arg 2)

In order to suppress the warning we use the C99 format specifier
macro PRIu32 from <inttypes.h>.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ramsay Jones 2011-01-11 18:17:21 +00:00 коммит произвёл Junio C Hamano
Родитель 60a2e3320f
Коммит 5ee5f5a65d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -211,7 +211,7 @@ void svndump_read(const char *url)
if (key == keys.svn_fs_dump_format_version) { if (key == keys.svn_fs_dump_format_version) {
dump_ctx.version = atoi(val); dump_ctx.version = atoi(val);
if (dump_ctx.version > 2) if (dump_ctx.version > 2)
die("expected svn dump format version <= 2, found %d", die("expected svn dump format version <= 2, found %"PRIu32,
dump_ctx.version); dump_ctx.version);
} else if (key == keys.uuid) { } else if (key == keys.uuid) {
dump_ctx.uuid = pool_intern(val); dump_ctx.uuid = pool_intern(val);