@matheusbsbs / matheus-bagliano / commits / 41e6b91f01
Fork 0

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>

Jonathan Nieder committed Mar 27, 2011 at 12:19 UTC 41e6b91f01bc9bb7e1679542a8cce9bd4252fd2e
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) {