summaryrefslogtreecommitdiff
path: root/src/model/count.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/count.c')
-rw-r--r--src/model/count.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/model/count.c b/src/model/count.c
index 02f6a33..d42f806 100644
--- a/src/model/count.c
+++ b/src/model/count.c
@@ -8,9 +8,7 @@ size_t elfu_countSections(ElfuElf *me)
ElfuScn *ms;
size_t i = 0;
- for (ms = me->scnList.cqh_first;
- ms != (void *)&me->scnList;
- ms = ms->elem.cqe_next) {
+ CIRCLEQ_FOREACH(ms, &me->scnList, elem) {
i++;
}
@@ -23,9 +21,7 @@ size_t elfu_countPHDRs(ElfuElf *me)
ElfuPhdr *mp;
size_t i = 0;
- for (mp = me->phdrList.cqh_first;
- mp != (void *)&me->phdrList;
- mp = mp->elem.cqe_next) {
+ CIRCLEQ_FOREACH(mp, &me->phdrList, elem) {
i++;
}