From 62bfc2dc87cfd752856e2b5aeecc790255143523 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 10 Aug 2009 16:42:53 -0700 Subject: [PATCH] ext2: fix missing (void), use standard form for loop Use the standard form for a for loop; add missing (void). Signed-off-by: H. Peter Anvin --- core/ext2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/ext2.c b/core/ext2.c index 787a6f1..b57f1e7 100644 --- a/core/ext2.c +++ b/core/ext2.c @@ -68,15 +68,15 @@ static int strecpy(char *dst, char *src, char *end) * @return: if successful return the file pointer, or return NULL * */ -static struct open_file_t *allocate_file() +static struct open_file_t *allocate_file(void) { - struct open_file_t *file = (struct open_file_t *)Files; - int i = 0; + struct open_file_t *file = Files; + int i; - for (; i < MAX_OPEN; i ++) { + for (i = 0; i < MAX_OPEN; i++) { if (file->file_bytesleft == 0) /* found it */ return file; - file ++; + file++; } return NULL; /* not found */ -- 2.7.4