]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: listener: avoir a build warning when threads are disabled
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Oct 2020 15:43:04 +0000 (17:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Oct 2020 15:43:04 +0000 (17:43 +0200)
It's just a __decl_thread() that appeared before the last variable.

src/listener.c

index 320fc5eb71386067102ddba9ee818bd5e6898e6d..85191f50bac7a01138d7399b5ad121ba566c6d2c 100644 (file)
@@ -762,8 +762,8 @@ void listener_accept(struct listener *l)
         */
        for (; max_accept; next_conn = next_feconn = next_actconn = 0, max_accept--) {
                unsigned int count;
-               __decl_thread(unsigned long mask);
                int status;
+               __decl_thread(unsigned long mask);
 
                /* pre-increase the number of connections without going too far.
                 * We process the listener, then the proxy, then the process.