Use macro API to <sys/queue.h>

This commit is contained in:
Poul-Henning Kamp 2001-02-04 10:34:45 +00:00
parent 95ba77bff8
commit c8f71496f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71988

View File

@ -78,7 +78,7 @@ DEV##_get_ccb() \
if (CCBTYPE##que.count < CCBTYPE##que.maxccb) \
{ \
CCBTYPE##que.count ++; \
cb = CCBTYPE##que.CCBTYPE##tab.tqh_first; \
cb = TAILQ_FIRST(&(CCBTYPE##que.CCBTYPE##tab)); \
if (cb != NULL) \
{ \
TAILQ_REMOVE(&CCBTYPE##que.CCBTYPE##tab, cb, CHAIN);\