diff options
Diffstat (limited to 'include.c')
-rw-r--r-- | include.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -178,13 +178,13 @@ included_by(struct inclist *ip, struct inclist *newfile) ip->i_merged = mallocarray(ip->i_listlen, sizeof(boolean)); } else { - for (int i = 0; i < ip->i_listlen; i++) { + for (unsigned int i = 0; i < ip->i_listlen; i++) { if (ip->i_list[i] == newfile) { - i = strlen(newfile->i_file); + size_t l = strlen(newfile->i_file); if (!(ip->i_flags & INCLUDED_SYM) && - !(i > 2 && - newfile->i_file[i - 1] == 'c' && - newfile->i_file[i - 2] == '.')) { + !(l > 2 && + newfile->i_file[l - 1] == 'c' && + newfile->i_file[l - 2] == '.')) { /* only bitch if ip has */ /* no #include SYMBOL lines */ /* and is not a .c file */ |