Use macro API to <sys/queue.h>

This commit is contained in:
phk 2001-02-04 10:34:45 +00:00
parent 098a0a97ed
commit 576d0b4520

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);\