From cc3a893f5a70b3cecb116f5456d625a909851bee Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Mon, 14 Jun 2004 20:08:12 +0000 Subject: [PATCH] Changed the fields in the child_config_s structure to use regular signed integers since the servers_waiting variable is signed and therefore, all the tests must use signed arithmetic. --- src/child.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/child.c b/src/child.c index 9359a4b..d68952c 100644 --- a/src/child.c +++ b/src/child.c @@ -1,4 +1,4 @@ -/* $Id: child.c,v 1.11.2.1 2003-08-06 20:23:06 rjkaes Exp $ +/* $Id: child.c,v 1.11.2.2 2004-06-14 20:08:12 rjkaes Exp $ * * Handles the creation/destruction of the various children required for * processing incoming connections. @@ -46,8 +46,8 @@ struct child_s { static struct child_s *child_ptr; static struct child_config_s { - unsigned int maxclients, maxrequestsperchild; - unsigned int maxspareservers, minspareservers, startservers; + int maxclients, maxrequestsperchild; + int maxspareservers, minspareservers, startservers; } child_config; static int* servers_waiting; /* servers waiting for a connection */ @@ -127,7 +127,7 @@ _child_lock_release(void) * Set the configuration values for the various child related settings. */ short int -child_configure(child_config_t type, unsigned int val) +child_configure(child_config_t type, int val) { switch (type) { case CHILD_MAXCLIENTS: