mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
MFV r351500: Fix CLEAR_HASH macro to be usable as a single statement.
MFC after: 2 weeks
This commit is contained in:
commit
110f229794
1 changed files with 5 additions and 3 deletions
|
|
@ -189,9 +189,11 @@ local const config configuration_table[10] = {
|
|||
* Initialize the hash table (avoiding 64K overflow for 16 bit systems).
|
||||
* prev[] will be initialized on the fly.
|
||||
*/
|
||||
#define CLEAR_HASH(s) do { \
|
||||
s->head[s->hash_size-1] = NIL; \
|
||||
zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); \
|
||||
#define CLEAR_HASH(s) \
|
||||
do { \
|
||||
s->head[s->hash_size-1] = NIL; \
|
||||
zmemzero((Bytef *)s->head, \
|
||||
(unsigned)(s->hash_size-1)*sizeof(*s->head)); \
|
||||
} while (0)
|
||||
|
||||
/* ===========================================================================
|
||||
|
|
|
|||
Loading…
Reference in a new issue