commit | 5853f084a0212b7f50cbdd18cfbc15f90de240ff | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Sun Jan 16 17:38:22 2011 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Sun Jan 16 20:29:48 2011 +0100 |
tree | 0df86719874c3161fb9724c0bd2c9843a8225b93 | |
parent | 52c07ca6c5708e4b20d8a6b6f40d09f74fef43ba [diff] |
msgb: Make sure at compile time that headroom is smaller than size All current code is using constants to allocate the msgb with headroom. Use a static_assert to make sure that the headroom is smaller than the size. This makes API misusage unlikely to happen.