projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef71f01
)
CONTRIB: tcploop: remove unused local variables in tcp_pause()
author
Willy Tarreau
<w@1wt.eu>
Thu, 22 Oct 2020 03:12:04 +0000
(
05:12
+0200)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/contrib/tcploop/tcploop.c
b/contrib/tcploop/tcploop.c
index
55b7936
..
7786494
100644
(file)
--- a/
contrib/tcploop/tcploop.c
+++ b/
contrib/tcploop/tcploop.c
@@
-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);