svn commit: r351501 - head/sys/contrib/zlib
Xin LI
delphij at FreeBSD.org
Mon Aug 26 00:46:40 UTC 2019
Author: delphij
Date: Mon Aug 26 00:46:39 2019
New Revision: 351501
URL: https://svnweb.freebsd.org/changeset/base/351501
Log:
MFV r351500: Fix CLEAR_HASH macro to be usable as a single statement.
MFC after: 2 weeks
Modified:
head/sys/contrib/zlib/deflate.c
Directory Properties:
head/sys/contrib/zlib/ (props changed)
Modified: head/sys/contrib/zlib/deflate.c
==============================================================================
--- head/sys/contrib/zlib/deflate.c Sun Aug 25 23:51:44 2019 (r351500)
+++ head/sys/contrib/zlib/deflate.c Mon Aug 26 00:46:39 2019 (r351501)
@@ -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)
/* ===========================================================================
More information about the svn-src-all
mailing list