summaryrefslogtreecommitdiff
path: root/update-cache.c
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-05-06 08:49:07 -0700
committerLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-05-06 08:49:07 -0700
commit22b781051bc1902b656708acbc51f39654ce969d (patch)
treeab66ad8ff88d9f0973b883a87146e2137670dd26 /update-cache.c
parent[PATCH] fix compare symlink against readlink not data (diff)
downloadtgif-22b781051bc1902b656708acbc51f39654ce969d.tar.xz
update-cache: remove compiler warning
"Unused variable len"
Diffstat (limited to 'update-cache.c')
-rw-r--r--update-cache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/update-cache.c b/update-cache.c
index 210c786af6..97d5e8b6b0 100644
--- a/update-cache.c
+++ b/update-cache.c
@@ -63,7 +63,6 @@ static int add_file_to_cache_1(char *path)
struct cache_entry *ce;
struct stat st;
int fd;
- unsigned int len;
char *target;
if (lstat(path, &st) < 0) {