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>
Jonathan Nieder committed
Aug 13, 2010 at 19:03 UTC
6117abae569e53485f7a90d2595b135c7beb3c96
1 file changed
+3
-2
vcs-svn/fast_export.c
+3
-2
@@ -48,8 +48,9 @@ void fast_export_commit(uint32_t revision, uint32_t author, char *log,
48
~author ? pool_fetch(author) : "nobody",
49
~author ? pool_fetch(author) : "nobody",
50
~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);
54
if (!first_commit_done) {
55
if (revision > 1)
56
printf("from refs/heads/master^0\n");