summaryrefslogtreecommitdiff
path: root/usr.sbin/slowcgi
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2020-05-08 07:41:34 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2020-05-08 07:41:34 +0000
commit26ecd83e8c38392aa11146aa860cef93a2cd122a (patch)
treec720c0dc7930b652edfcfa3ade5cfff0d79b4ee8 /usr.sbin/slowcgi
parentb6734bf8f2673f2586822c2d999306b09f29c2d6 (diff)
Just a bit of KNF.
OK florian@
Diffstat (limited to 'usr.sbin/slowcgi')
-rw-r--r--usr.sbin/slowcgi/slowcgi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/slowcgi/slowcgi.c b/usr.sbin/slowcgi/slowcgi.c
index 8def399a25d..6610012e080 100644
--- a/usr.sbin/slowcgi/slowcgi.c
+++ b/usr.sbin/slowcgi/slowcgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slowcgi.c,v 1.55 2018/10/19 08:13:34 claudio Exp $ */
+/* $OpenBSD: slowcgi.c,v 1.56 2020/05/08 07:41:33 claudio Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
* Copyright (c) 2013 Florian Obser <florian@openbsd.org>
@@ -406,8 +406,7 @@ slowcgi_listen(char *path, struct passwd *pw)
if (errno != ENOENT)
lerr(1, "slowcgi_listen: unlink %s", path);
- old_umask = umask(S_IXUSR|S_IXGRP|S_IWOTH|S_IROTH|
- S_IXOTH);
+ old_umask = umask(S_IXUSR|S_IXGRP|S_IWOTH|S_IROTH|S_IXOTH);
if (bind(fd, (struct sockaddr *)&sun, sizeof(sun)) == -1)
lerr(1,"slowcgi_listen: bind: %s", path);
@@ -433,7 +432,7 @@ slowcgi_paused(int fd, short events, void *arg)
int
accept_reserve(int sockfd, struct sockaddr *addr, socklen_t *addrlen,
- int reserve, volatile int *counter)
+ int reserve, volatile int *counter)
{
int ret;
if (getdtablecount() + reserve +
@@ -708,6 +707,7 @@ parse_begin_request(uint8_t *buf, uint16_t n, struct request *c, uint16_t id)
SLIST_INIT(&c->env);
c->env_count = 0;
}
+
void
parse_params(uint8_t *buf, uint16_t n, struct request *c, uint16_t id)
{