diff options
author | norly <ny-git@enpas.org> | 2013-02-22 18:35:12 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-02-22 18:35:12 +0000 |
commit | 7b04e102bb2ad0189f66d4878fe92d6fa22a1990 (patch) | |
tree | 60726daa2d83a2aac9acdaca76da081a2b8a6fd1 /src/model/count.c | |
parent | c2fa58cbd584e835f0c53c95469fde5a699a6396 (diff) |
Use CIRCLEQ_FOREACH throughout
Diffstat (limited to 'src/model/count.c')
-rw-r--r-- | src/model/count.c | 8 |
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++; } |