summaryrefslogtreecommitdiff
path: root/vcs-svn/fast_export.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-03-27 17:19:14 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2011-03-27 17:21:12 (GMT)
commit41e6b91f01bc9bb7e1679542a8cce9bd4252fd2e (patch)
tree58562e7bb89cd37b282f043a4b33d0578fdfb13c /vcs-svn/fast_export.c
parent195b7ca6f229455da61f9f6b6e56a6558fb0e8ee (diff)
downloadgit-41e6b91f01bc9bb7e1679542a8cce9bd4252fd2e.zip
git-41e6b91f01bc9bb7e1679542a8cce9bd4252fd2e.tar.gz
git-41e6b91f01bc9bb7e1679542a8cce9bd4252fd2e.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>
Diffstat (limited to 'vcs-svn/fast_export.c')
-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) {