aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian2014-12-05 19:58:47 +0000
committerWynn Wolf Arbor2020-05-24 12:33:55 +0200
commite18e7b71d2f75a1e98e6b8fe2e0cb239616de3ce (patch)
tree29b0fb273104f593d15c28f4246626c729b1498b
parentb0a8623bd5c0dc3527fbc1d75c593732ced97ad1 (diff)
downloadslowcgi-e18e7b71d2f75a1e98e6b8fe2e0cb239616de3ce.tar.gz
pause shadows global; pointed out by gcc; no binary change
Diffstat (limited to '')
-rw-r--r--slowcgi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/slowcgi.c b/slowcgi.c
index cfcc007..5e181d3 100644
--- a/slowcgi.c
+++ b/slowcgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slowcgi.c,v 1.37 2014/12/05 19:57:27 florian Exp $ */
+/* $OpenBSD: slowcgi.c,v 1.38 2014/12/05 19:58:47 florian Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
* Copyright (c) 2013 Florian Obser <florian@openbsd.org>
@@ -430,15 +430,15 @@ slowcgi_accept(int fd, short events, void *arg)
{
struct listener *l;
struct sockaddr_storage ss;
- struct timeval pause;
+ struct timeval backoff;
struct request *c;
struct requests *requests;
socklen_t len;
int s;
l = arg;
- pause.tv_sec = 1;
- pause.tv_usec = 0;
+ backoff.tv_sec = 1;
+ backoff.tv_usec = 0;
c = NULL;
len = sizeof(ss);
@@ -452,7 +452,7 @@ slowcgi_accept(int fd, short events, void *arg)
case EMFILE:
case ENFILE:
event_del(&l->ev);
- evtimer_add(&l->pause, &pause);
+ evtimer_add(&l->pause, &backoff);
return;
default:
lerr(1, "accept");