Hi

Updated these two for int8_t and current master.

- Lauri
>From 4e4a903eb16fe1e17d3199cf3d0bf40a1fe60295 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 int8_t, 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..a5bd6d7 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;
+    int8_t is_daemon;
+    int8_t 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) */
+    int8_t hideversion;           /* hide version of server to clients ? */
+    int8_t resume;                /* Resume (on/off) */
+    int8_t symlink;               /* symbolic links */
 
     /* keep alive */
-    int keep_alive;             /* it's a persisten connection ? */
+    int8_t 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

Reply via email to