-/* $OpenBSD: httpd.h,v 1.9 2014/07/25 12:42:05 reyk Exp $ */
+/* $OpenBSD: httpd.h,v 1.10 2014/07/25 12:46:23 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
struct client {
u_int32_t clt_id;
pid_t clt_pid;
- void *clt_server;
- u_int32_t clt_serverid;
+ void *clt_srv;
+ u_int32_t clt_srv_id;
int clt_s;
in_port_t clt_port;
-/* $OpenBSD: server.c,v 1.8 2014/07/24 08:32:36 reyk Exp $ */
+/* $OpenBSD: server.c,v 1.9 2014/07/25 12:46:23 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
void
server_input(struct client *clt)
{
- struct server *srv = clt->clt_server;
+ struct server *srv = clt->clt_srv;
evbuffercb inrd = server_read;
evbuffercb inwr = server_write;
clt->clt_s = s;
clt->clt_fd = -1;
clt->clt_toread = TOREAD_UNLIMITED;
- clt->clt_server = srv;
+ clt->clt_srv = srv;
clt->clt_id = ++server_cltid;
- clt->clt_serverid = srv->srv_conf.id;
+ clt->clt_srv_id = srv->srv_conf.id;
clt->clt_pid = getpid();
clt->clt_inflight = 1;
switch (ss.ss_family) {
server_close(struct client *clt, const char *msg)
{
char ibuf[128], obuf[128], *ptr = NULL;
- struct server *srv = clt->clt_server;
+ struct server *srv = clt->clt_srv;
SPLAY_REMOVE(client_tree, &srv->srv_clients, clt);
-/* $OpenBSD: server_file.c,v 1.11 2014/07/25 12:42:05 reyk Exp $ */
+/* $OpenBSD: server_file.c,v 1.12 2014/07/25 12:46:23 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
server_file(struct httpd *env, struct client *clt)
{
struct http_descriptor *desc = clt->clt_desc;
- struct server *srv = clt->clt_server;
+ struct server *srv = clt->clt_srv;
struct media_type *media;
const char *errstr = NULL;
int fd = -1, ret;
-/* $OpenBSD: server_http.c,v 1.11 2014/07/24 08:32:36 reyk Exp $ */
+/* $OpenBSD: server_http.c,v 1.12 2014/07/25 12:46:23 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
void
server_abort_http(struct client *clt, u_int code, const char *msg)
{
- struct server *srv = clt->clt_server;
+ struct server *srv = clt->clt_srv;
struct bufferevent *bev = clt->clt_bev;
const char *httperr = NULL, *text = "";
char *httpmsg, *extraheader = NULL;