Make fsck_dir void.
Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
David Rientjes committed
Aug 14, 2006 at 13:36 UTC
b5524c826dc36e5d9d2455cfca85aa62f1a776d1
1 file changed
+2
-3
fsck-objects.c
+2
-3
@@ -366,13 +366,13 @@ static void add_sha1_list(unsigned char *sha1, unsigned long ino)
366
sha1_list.nr = ++nr;
367
}
368
369
-static int fsck_dir(int i, char *path)
369
+static void fsck_dir(int i, char *path)
370
{
371
DIR *dir = opendir(path);
372
struct dirent *de;
373
374
if (!dir)
375
- return 0;
375
+ return;
376
377
while ((de = readdir(dir)) != NULL) {
378
char name[100];
@@ -398,7 +398,6 @@ static int fsck_dir(int i, char *path)
398
fprintf(stderr, "bad sha1 file: %s/%s\n", path, de->d_name);
399
}
400
closedir(dir);
401
- return 0;
401
}
402
403
static int default_refs = 0;