On Mon, 30 Jul 2012 11:20:16 -0600
Eduardo Silva <[email protected]> wrote:

> patch failed:
> 
> error: patch failed: src/include/mk_config.h:74
> error: src/include/mk_config.h: patch does not apply

Curious, as it applies here, and even when rebased over master (attached), it 
didn't change the patch, only the date and time lines.


- Lauri
>From 57a2a4ccc20e25df232ce5cae738f7f672f6c4ac Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Fri, 8 Jun 2012 15:08:52 +0300
Subject: [PATCH] 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

Reply via email to