diff options
author | claudio | 2020-05-08 07:41:33 +0000 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-05-24 14:08:57 +0200 |
commit | 95e6e630258f4432d63dffb839eea40aa4c57e41 (patch) | |
tree | 8a3e138e23cc34722f306636da4b63b1606d0b3b | |
parent | 25b5e5d8d676a6cc939ac0aa688c1ce2fe9e6111 (diff) | |
download | slowcgi-95e6e630258f4432d63dffb839eea40aa4c57e41.tar.gz |
Just a bit of KNF. OK florian@
Diffstat (limited to '')
-rw-r--r-- | slowcgi.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |