diff options
author | keramida <keramida@FreeBSD.org> | 2002-06-07 01:01:08 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2002-06-07 01:01:08 +0000 |
commit | c1a85efa3ab52899e85a6244b2f062ac0284c2d6 (patch) | |
tree | 7e96c60173be233f96cfe93381c41d003d00841a /usr.bin/makewhatis | |
parent | 385a5340072503679856712a6eb186acd02febcb (diff) | |
download | FreeBSD-src-c1a85efa3ab52899e85a6244b2f062ac0284c2d6.zip FreeBSD-src-c1a85efa3ab52899e85a6244b2f062ac0284c2d6.tar.gz |
Use size_t or ino_t instead of int, and remove a few warnings.
The makewhatis utility is now ok with WARNS=3.
Reviewed by: bde
Diffstat (limited to 'usr.bin/makewhatis')
-rw-r--r-- | usr.bin/makewhatis/makewhatis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/makewhatis/makewhatis.c b/usr.bin/makewhatis/makewhatis.c index f6dec49..ecf160a 100644 --- a/usr.bin/makewhatis/makewhatis.c +++ b/usr.bin/makewhatis/makewhatis.c @@ -293,7 +293,7 @@ static int no_page_exists(char *dir, StringList *names, char *suffix) { char path[MAXPATHLEN]; - int i; + size_t i; for (i = 0; i < names->sl_cur; i++) { snprintf(path, sizeof path, "%s/%s.%s.gz", dir, names->sl_str[i], suffix); @@ -363,7 +363,7 @@ linesort(const void *a, const void *b) static void finish_output(FILE *output, char *name) { - int i; + size_t i; char *prev = NULL; qsort(whatis_lines->sl_str, whatis_lines->sl_cur, sizeof(char *), linesort); @@ -693,7 +693,7 @@ process_page(struct page_info *page, char *section_dir) StringList *names; char *descr; int state = STATE_UNKNOWN; - int i; + size_t i; sbuf_clear(whatis_proto); if ((in = gzopen(page->filename, "r")) == NULL) { @@ -824,7 +824,7 @@ process_section(char *section_dir) struct page_info **pages; int npages = 0; int i; - int prev_inode = 0; + ino_t prev_inode = 0; if (verbose) fprintf(stderr, " %s\n", section_dir); |