]> git.proxmox.com Git - pve-firewall.git/commit
add compile time test for log struct size
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Mar 2014 09:24:02 +0000 (10:24 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Mar 2014 09:24:02 +0000 (10:24 +0100)
commit5b06fd6c0e9ce50c58cfb32f6820d1ebce5858c4
treeb28f03f48e090883cb71eecae5ecc6df46ae639a
parentc598011d4092056d13768b324d01e43b550edc6b
add compile time test for log struct size

The STATIC_ASSERT macro declares an external function (which is never used).
The declaratin fails if the expression evaluates to false, because that
would result in a negative array bound.
src/pvefw-logger.c