diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-11 13:27:58 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-11 13:38:45 +0200 |
commit | 2ba043d04468261cc767a3b91cec6df4b2238950 (patch) | |
tree | 4162bd71db9d4e4ead209af5d5595805e78abe39 /ipc/ipc_entry.h | |
parent | e59f05e940643350bb3813e5b7f18f9fe54806f6 (diff) |
kern: make sure the queue macros are only used on queues
This turns mistakes as the one corrected in e59f05e9 into compile-time
errors.
* kern/queue.h: Add a new macro, queue_assert, and use it to assert
that all arguments given to the queue macros have the correct type.
* device/net_io.c (ENQUEUE_DEAD): Adapt to the fact that
`queue_next(q)' is no longer an lvalue.
Diffstat (limited to 'ipc/ipc_entry.h')
0 files changed, 0 insertions, 0 deletions