diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-08-10 16:42:53 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-08-10 16:42:53 -0700 |
commit | 62bfc2dc87cfd752856e2b5aeecc790255143523 (patch) | |
tree | 47c2bbb0932783ed224c477b84abac4acada0aca | |
parent | 710be5ce8bb85a8cfe08acbc242dbee12f6c7871 (diff) | |
download | syslinux-62bfc2dc87cfd752856e2b5aeecc790255143523.tar.gz |
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 <hpa@zytor.com>
-rw-r--r-- | core/ext2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/ext2.c b/core/ext2.c index 787a6f18..b57f1e70 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 */ |