- Lauri
>From 91455ad56eb1ef68b562d548291d420da6770130 Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Fri, 8 Jun 2012 15:08:52 +0300
Subject: [PATCH 2/2] config: host_alias, worker_capacity and max_load are never 
negative


Signed-off-by: Lauri Kasanen <[email protected]>
---
 src/include/mk_config.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/mk_config.h b/src/include/mk_config.h
index cb0a582..5ba78dd 100644
--- a/src/include/mk_config.h
+++ b/src/include/mk_config.h
@@ -74,8 +74,8 @@ struct mk_config_entry
 struct server_config
 {
     int server_fd;              /* server socket file descriptor */
-    int worker_capacity;        /* how many clients per thread... */
-    int max_load;               /* max number of clients (worker_capacity * 
workers) */
+    unsigned int worker_capacity; /* how many clients per thread... */
+    unsigned int max_load;      /* max number of clients (worker_capacity * 
workers) */
     short int workers;          /* number of worker threads */
 
     char is_daemon;
@@ -172,7 +172,7 @@ struct host
 struct host_alias
 {
     char *name;
-    int len;
+    unsigned int len;
 
     struct mk_list _head;
 };
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to