aboutsummaryrefslogtreecommitdiff
path: root/httpd/server_fcgi.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2015-08-20 16:14:26 +0200
committerReyk Floeter <reyk@esdenera.com>2015-08-20 16:14:26 +0200
commit674c1ef69f302980c6def35911c1ee3c4b68cef2 (patch)
tree8fd68ee5bd14b11b6fcf6aea8e89e290234e6e13 /httpd/server_fcgi.c
parent5a94b0dcb28aad5e44b896a36d959f0e1654f409 (diff)
downloadhttpd-674c1ef69f302980c6def35911c1ee3c4b68cef2.tar.gz
httpd-674c1ef69f302980c6def35911c1ee3c4b68cef2.zip
sync CVS commitid: WDQybNKi4LiEFw8K:
Change httpd(8) to use C99-style fixed-width integers (uintN_t instead of u_intN_t) and replace u_int with unsigned int. Mixing both variants is a bad style and most contributors seem to prefer this style; it also helps us to get used to it, portability, and standardization. Theoretically no binary change, except one in practice: httpd.o has a different checksum because gcc with -O2 pads/optimizes "struct privsep" differently when using "unsigned int" instead "u_int" for the affected members. "u_int" is just a typedef of "unsigned int", -O0 doesn't build the difference and clang with -O2 doesn't do it either - it is just another curiosity from gcc-land. OK semarie@
Diffstat (limited to 'httpd/server_fcgi.c')
-rw-r--r--httpd/server_fcgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/server_fcgi.c b/httpd/server_fcgi.c
index a5c96b1..e7d9747 100644
--- a/httpd/server_fcgi.c
+++ b/httpd/server_fcgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server_fcgi.c,v 1.63 2015/08/03 11:45:17 florian Exp $ */
+/* $OpenBSD: server_fcgi.c,v 1.64 2015/08/20 13:00:23 reyk Exp $ */
/*
* Copyright (c) 2014 Florian Obser <florian@openbsd.org>
@@ -76,7 +76,7 @@ struct server_fcgi_param {
uint8_t buf[FCGI_RECORD_SIZE];
};
-int server_fcgi_header(struct client *, u_int);
+int server_fcgi_header(struct client *, unsigned int);
void server_fcgi_read(struct bufferevent *, void *);
int server_fcgi_writeheader(struct client *, struct kv *, void *);
int server_fcgi_writechunk(struct client *);
@@ -588,7 +588,7 @@ server_fcgi_read(struct bufferevent *bev, void *arg)
}
int
-server_fcgi_header(struct client *clt, u_int code)
+server_fcgi_header(struct client *clt, unsigned int code)
{
struct server_config *srv_conf = clt->clt_srv_conf;
struct http_descriptor *desc = clt->clt_descreq;