Skip to content

Commit

Permalink
vcs-svn: add missing cast to printf argument
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Nieder committed Mar 27, 2011
1 parent 195b7ca commit 41e6b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vcs-svn/fast_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 41e6b91

Please sign in to comment.