]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: tcploop: remove unused local variables in tcp_pause()
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Oct 2020 03:12:04 +0000 (05:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Oct 2020 03:17:08 +0000 (05:17 +0200)
Building with -Wall shows that "pollfd" and "ret" are not used. Silly
copy-paste...

contrib/tcploop/tcploop.c

index 55b79365890f25cbed8c55b011c9692fc8a44071..7786494caf22065e70e54ac77c626be5537d2fcd 100644 (file)
@@ -692,9 +692,7 @@ int tcp_wait_out(int sock, const char *arg)
 /* delays processing for <time> milliseconds, 100 by default */
 int tcp_pause(int sock, const char *arg)
 {
-       struct pollfd pollfd;
        int delay = 100;
-       int ret;
 
        if (arg[1]) {
                delay = atoi(arg + 1);