Use macro API to <sys/queue.h>
This commit is contained in:
parent
95ba77bff8
commit
c8f71496f7
@ -78,7 +78,7 @@ DEV##_get_ccb() \
|
|||||||
if (CCBTYPE##que.count < CCBTYPE##que.maxccb) \
|
if (CCBTYPE##que.count < CCBTYPE##que.maxccb) \
|
||||||
{ \
|
{ \
|
||||||
CCBTYPE##que.count ++; \
|
CCBTYPE##que.count ++; \
|
||||||
cb = CCBTYPE##que.CCBTYPE##tab.tqh_first; \
|
cb = TAILQ_FIRST(&(CCBTYPE##que.CCBTYPE##tab)); \
|
||||||
if (cb != NULL) \
|
if (cb != NULL) \
|
||||||
{ \
|
{ \
|
||||||
TAILQ_REMOVE(&CCBTYPE##que.CCBTYPE##tab, cb, CHAIN);\
|
TAILQ_REMOVE(&CCBTYPE##que.CCBTYPE##tab, cb, CHAIN);\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user