summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 195b7ca)
raw | patch | inline | side by side (parent: 195b7ca)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Sun, 27 Mar 2011 17:19:14 +0000 (12:19 -0500) | ||
committer | Jonathan Nieder <jrnieder@gmail.com> | |
Sun, 27 Mar 2011 17:21:12 +0000 (12:21 -0500) |
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>
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>
vcs-svn/fast_export.c | patch | blob | history |
diff --git a/vcs-svn/fast_export.c b/vcs-svn/fast_export.c
index 2e5bb6725568c06125d9e856f9bddd0b50b407c2..99ed70b88a5aaacbb48a9463f19ec198d7bedf84 100644 (file)
--- a/vcs-svn/fast_export.c
+++ b/vcs-svn/fast_export.c
*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) {