Hi This cuts the size of server_config a bit.
- Lauri
>From 65be75b5244efe0e2b87d4f4a20bb0d9e5df5a4a Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Wed, 6 Jun 2012 18:08:13 +0300 Subject: [PATCH 1/2] config: Use char, not int, for tri-state options (true, false, error) Signed-off-by: Lauri Kasanen <[email protected]> --- src/include/mk_config.h | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/include/mk_config.h b/src/include/mk_config.h index 2a7140d..cb0a582 100644 --- a/src/include/mk_config.h +++ b/src/include/mk_config.h @@ -78,10 +78,8 @@ struct server_config int max_load; /* max number of clients (worker_capacity * workers) */ short int workers; /* number of worker threads */ - - - int is_daemon; - int is_seteuid; + char is_daemon; + char is_seteuid; char *serverconf; /* path to configuration files */ char *listen_addr; @@ -94,16 +92,16 @@ struct server_config char *file_config; char **request_headers_allowed; - int symlink; /* symbolic links */ int serverport; /* port */ int timeout; /* max time to wait for a new connection */ - int hideversion; /* hide version of server to clients ? */ int standard_port; /* common port used in web servers (80) */ int pid_status; - int resume; /* Resume (on/off) */ + char hideversion; /* hide version of server to clients ? */ + char resume; /* Resume (on/off) */ + char symlink; /* symbolic links */ /* keep alive */ - int keep_alive; /* it's a persisten connection ? */ + char keep_alive; /* it's a persisten connection ? */ int max_keep_alive_request; /* max persistent connections to allow */ int keep_alive_timeout; /* persistent connection timeout */ -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
