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>
Jonathan Nieder committed
Mar 27, 2011 at 19:38 UTC
8cc299daf29c6726acada3ffad87c3fe2098aa02
1 file changed
+2
-1
vcs-svn/fast_export.c
+2
-1
@@ -51,7 +51,8 @@ void fast_export_commit(uint32_t revision, const char *author,
51
*author ? author : "nobody",
52
*author ? author : "nobody",
53
*uuid ? uuid : "local", timestamp);
54
- printf("data %"PRIuMAX"\n", log->len + strlen(gitsvnline));
54
+ printf("data %"PRIuMAX"\n",
55
+ (uintmax_t) (log->len + strlen(gitsvnline)));
56
fwrite(log->buf, log->len, 1, stdout);
57
printf("%s\n", gitsvnline);
58
if (!first_commit_done) {