Skip to content

Commit

Permalink
vcs-svn: Avoid %z in format string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Aug 15, 2010
1 parent 68b4cfb commit 6117aba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vcs-svn/fast_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6117aba

Please sign in to comment.