git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 21/28] makes fsck_dir void

From
DRDavid Rientjes <rientjes@google.com>
Date
Aug 14, 2006, 20:36 UTC
Message-ID
<Pine.LNX.4.63.0608141335420.19383@chino.corp.google.com>
Makes fsck_dir void.
		David
Signed-off-by: David Rientjes <rientjes@google.com>
---
 fsck-objects.c |    5 ++---
 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_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;
-- 
1.4.2.g89bb-dirty
Message 1 of 1 in “makes fsck_dir void”
  1. 21/28 makes fsck_dir voidDavid Rientjes, Aug 14, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.