Skip to content

Commit 6117aba

Browse files
jrngitster
authored andcommitted
vcs-svn: Avoid %z in format string
In the spirit of v1.6.4-rc0~124 (MinGW: Fix compiler warning in merge-recursive, 2009-05-23), use a 32-bit integer instead; the dump file parser does not support any better, anyway. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 68b4cfb commit 6117aba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vcs-svn/fast_export.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ void fast_export_commit(uint32_t revision, uint32_t author, char *log,
4848
~author ? pool_fetch(author) : "nobody",
4949
~author ? pool_fetch(author) : "nobody",
5050
~uuid ? pool_fetch(uuid) : "local", timestamp);
51-
printf("data %zd\n%s%s\n",
52-
strlen(log) + strlen(gitsvnline), log, gitsvnline);
51+
printf("data %"PRIu32"\n%s%s\n",
52+
(uint32_t) (strlen(log) + strlen(gitsvnline)),
53+
log, gitsvnline);
5354
if (!first_commit_done) {
5455
if (revision > 1)
5556
printf("from refs/heads/master^0\n");

0 commit comments

Comments
 (0)