summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-03-28 00:38:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-28 16:46:44 (GMT)
commit8cc299daf29c6726acada3ffad87c3fe2098aa02 (patch)
treec47a874ef5a52aec8578233ccfe6c0d58ff252e6
parentbe919d50c08fbe3a0653d6ba778b73f4940705ca (diff)
downloadgit-8cc299daf29c6726acada3ffad87c3fe2098aa02.zip
git-8cc299daf29c6726acada3ffad87c3fe2098aa02.tar.gz
git-8cc299daf29c6726acada3ffad87c3fe2098aa02.tar.bz2
vcs-svn: add missing cast to printf argument
gcc -m32 correctly warns: vcs-svn/fast_export.c: In function 'fast_export_commit': vcs-svn/fast_export.c:54:2: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat] Fix it. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--vcs-svn/fast_export.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcs-svn/fast_export.c b/vcs-svn/fast_export.c
index 2e5bb67..99ed70b 100644
--- a/vcs-svn/fast_export.c
+++ b/vcs-svn/fast_export.c
@@ -51,7 +51,8 @@ void fast_export_commit(uint32_t revision, const char *author,
*author ? author : "nobody",
*author ? author : "nobody",
*uuid ? uuid : "local", timestamp);
- printf("data %"PRIuMAX"\n", log->len + strlen(gitsvnline));
+ printf("data %"PRIuMAX"\n",
+ (uintmax_t) (log->len + strlen(gitsvnline)));
fwrite(log->buf, log->len, 1, stdout);
printf("%s\n", gitsvnline);
if (!first_commit_done) {