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
This commit is contained in:
parent
850a1deb0c
commit
c8f927b297
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97976
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user