summaryrefslogtreecommitdiff
path: root/include.c
diff options
context:
space:
mode:
Diffstat (limited to 'include.c')
-rw-r--r--include.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/include.c b/include.c
index 38e3cd0..b3a17ab 100644
--- a/include.c
+++ b/include.c
@@ -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 */