summaryrefslogtreecommitdiff
path: root/pr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-06 18:12:15 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-01 14:34:57 -0800
commit84f5fee3c769fc907c561110f4828416f921e81a (patch)
tree2da192cf588e5c7f93535b7d66e606e83df04a38 /pr.c
parent40bcc8c3303a858c786f1d6d04ae5bbdec6b04ff (diff)
Handle some implicit conversion warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'pr.c')
-rw-r--r--pr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pr.c b/pr.c
index db2bd34..36c7e73 100644
--- a/pr.c
+++ b/pr.c
@@ -132,7 +132,7 @@ pr(struct inclist *ip, const char *file, const char *base)
ip->i_flags |= NOTIFIED;
lastfile = NULL;
printf("\n# %s includes:", ip->i_file);
- for (int i = 0; i < ip->i_listlen; i++)
+ for (unsigned int i = 0; i < ip->i_listlen; i++)
printf("\n#\t%s", ip->i_list[i]->i_incstring);
}
@@ -144,6 +144,6 @@ recursive_pr_include(struct inclist *head, const char *file, const char *base)
head->i_flags |= MARKED;
if (head->i_file != file)
pr(head, file, base);
- for (int i = 0; i < head->i_listlen; i++)
+ for (unsigned int i = 0; i < head->i_listlen; i++)
recursive_pr_include(head->i_list[i], file, base);
}