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)
 
 /* ===========================================================================
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to