summaryrefslogtreecommitdiff
path: root/fsck-objects.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-14 20:36:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-15 01:59:03 (GMT)
commitb5524c826dc36e5d9d2455cfca85aa62f1a776d1 (patch)
tree3e5dcbfbba73325a42e85bc7c190926b9403b820 /fsck-objects.c
parentf7f0fbfcf4fb9367a12aba3a205fb5e1276a2800 (diff)
downloadgit-b5524c826dc36e5d9d2455cfca85aa62f1a776d1.zip
git-b5524c826dc36e5d9d2455cfca85aa62f1a776d1.tar.gz
git-b5524c826dc36e5d9d2455cfca85aa62f1a776d1.tar.bz2
Make fsck_dir void.
Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fsck-objects.c')
-rw-r--r--fsck-objects.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fsck-objects.c b/fsck-objects.c
index e167f41..4ba3377 100644
--- a/fsck-objects.c
+++ b/fsck-objects.c
@@ -366,13 +366,13 @@ static void add_sha1_list(unsigned char *sha1, unsigned long ino)
sha1_list.nr = ++nr;
}
-static int fsck_dir(int i, char *path)
+static void fsck_dir(int i, char *path)
{
DIR *dir = opendir(path);
struct dirent *de;
if (!dir)
- return 0;
+ return;
while ((de = readdir(dir)) != NULL) {
char name[100];
@@ -398,7 +398,6 @@ static int fsck_dir(int i, char *path)
fprintf(stderr, "bad sha1 file: %s/%s\n", path, de->d_name);
}
closedir(dir);
- return 0;
}
static int default_refs = 0;