Skip to content

Commit

Permalink
[PATCH] Fix warning in convert-cache
Browse files Browse the repository at this point in the history
gcc 3.4.3 kicks out this warning:
convert-cache.c: In function `write_subdirectory':
convert-cache.c:102: warning: field precision is not type int (arg 4)

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
tony.luck@intel.com authored and Linus Torvalds committed May 2, 2005
1 parent 7e8c174 commit f220fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static int write_subdirectory(void *buffer, unsigned long size, const char *base
continue;
}

newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, slash - path, path);
newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, (int)(slash - path), path);
new[newlen++] = 0;
sha1 = (unsigned char *)(new + newlen);
newlen += 20;
Expand Down

0 comments on commit f220fb6

Please sign in to comment.