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 55b7936..7786494 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);