Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2019 00:46:40 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351501 - head/sys/contrib/zlib
Message-ID:  <201908260046.x7Q0keZM020727@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 
 /* ===========================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908260046.x7Q0keZM020727>