summaryrefslogtreecommitdiff
path: root/vcs-svn/fast_export.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2010-08-13 19:03:17 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-14 19:35:38 -0700
commit6117abae569e53485f7a90d2595b135c7beb3c96 (patch)
treec87c640e1df970d4e9a23b352ceadadab5f92555 /vcs-svn/fast_export.c
parentvcs-svn: Rename dirent pool to build on Windows (diff)
downloadtgif-6117abae569e53485f7a90d2595b135c7beb3c96.tar.xz
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>
Diffstat (limited to 'vcs-svn/fast_export.c')
-rw-r--r--vcs-svn/fast_export.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcs-svn/fast_export.c b/vcs-svn/fast_export.c
index 3a6156fc11..256a0522b2 100644
--- a/vcs-svn/fast_export.c
+++ b/vcs-svn/fast_export.c
@@ -48,8 +48,9 @@ void fast_export_commit(uint32_t revision, uint32_t author, char *log,
~author ? pool_fetch(author) : "nobody",
~author ? pool_fetch(author) : "nobody",
~uuid ? pool_fetch(uuid) : "local", timestamp);
- printf("data %zd\n%s%s\n",
- strlen(log) + strlen(gitsvnline), log, gitsvnline);
+ printf("data %"PRIu32"\n%s%s\n",
+ (uint32_t) (strlen(log) + strlen(gitsvnline)),
+ log, gitsvnline);
if (!first_commit_done) {
if (revision > 1)
printf("from refs/heads/master^0\n");