summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortony.luck@intel.com <tony.luck@intel.com>2005-05-02 10:57:02 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 14:56:39 -0700
commitf220fb6b84e982417dda30b2fd09a0f1d987d2e4 (patch)
treed34183c1cae0faf3b7b3dc92da6faba123e5d62e
parent7e8c174a97c45ea87306aad56c762e7752cab324 (diff)
downloadgit-f220fb6b84e982417dda30b2fd09a0f1d987d2e4.tar.gz
[PATCH] Fix warning in convert-cache
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>
-rw-r--r--convert-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert-cache.c b/convert-cache.c
index 4d34d2d57e..93e477ad3b 100644
--- a/convert-cache.c
+++ b/convert-cache.c
@@ -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;