summaryrefslogtreecommitdiff
path: root/usr.sbin/slowcgi
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2014-12-05 19:58:48 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2014-12-05 19:58:48 +0000
commit68e022d82c6c1e5858327251b0a3be24381b6c18 (patch)
treebe238685b5d5e104fcfe3497ba2c1a5302fdee52 /usr.sbin/slowcgi
parent4091550cd005f7003248d188845be8e1e8946c5f (diff)
pause shadows global; pointed out by gcc; no binary change
Diffstat (limited to 'usr.sbin/slowcgi')
-rw-r--r--usr.sbin/slowcgi/slowcgi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/slowcgi/slowcgi.c b/usr.sbin/slowcgi/slowcgi.c
index cfcc007d80a..5e181d393d1 100644
--- a/usr.sbin/slowcgi/slowcgi.c
+++ b/usr.sbin/slowcgi/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");