aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio2020-05-08 07:41:33 +0000
committerWynn Wolf Arbor2020-05-24 14:08:57 +0200
commit95e6e630258f4432d63dffb839eea40aa4c57e41 (patch)
tree8a3e138e23cc34722f306636da4b63b1606d0b3b
parent25b5e5d8d676a6cc939ac0aa688c1ce2fe9e6111 (diff)
downloadslowcgi-95e6e630258f4432d63dffb839eea40aa4c57e41.tar.gz
Just a bit of KNF. OK florian@
-rw-r--r--slowcgi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/slowcgi.c b/slowcgi.c
index 87ae5b2..bf5d7fc 100644
--- a/slowcgi.c
+++ b/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>
@@ -425,8 +425,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);
@@ -452,7 +451,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 +
@@ -727,6 +726,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)
{