- Lauri
>From bc626774476ec26ff8d599aef522ea70416c0341 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 a5bd6d7..139b3a0 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 */ int8_t 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
