]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: slz: Mark `reset_refs` as static
authorTim Duesterhus <tim@bastelstu.be>
Mon, 20 Sep 2021 17:59:42 +0000 (19:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Sep 2021 13:07:50 +0000 (15:07 +0200)
This function has no prototype and is not used outside of slz.c.

src/slz.c

index 9aacb9b7a45fc1fe1cf7d2491c523e752eabbd35..23912da6a223d211ce75ccf8c621084922b610d1 100644 (file)
--- a/src/slz.c
+++ b/src/slz.c
@@ -466,7 +466,7 @@ static inline long memmatch(const unsigned char *a, const unsigned char *b, long
  * be applied to 64-bit aligned data exclusively, which makes it slightly
  * faster than the regular memset() since no alignment check is performed.
  */
-void reset_refs(union ref *refs, long count)
+static void reset_refs(union ref *refs, long count)
 {
        /* avoid a shift/mask by casting to void* */
        union ref *end = (void *)refs + count;