summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 22:57:33 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:28 +0200
commit60de38ceaa9528577441adcae94aa74b2ee3b03f (patch)
tree4c52fe0b4fb5bf8bb5cccf232ed408b32c6694f3
parentb4d8c5b9bf9a692a7712590e422aa078930212d0 (diff)
downloadtinyproxy-60de38ceaa9528577441adcae94aa74b2ee3b03f.tar.gz
tinyproxy-60de38ceaa9528577441adcae94aa74b2ee3b03f.zip
child: adapt child_config to contain unsigned integers
as just changed in get_int_arg. Michael
Diffstat (limited to '')
-rw-r--r--src/child.c6
-rw-r--r--src/child.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/child.c b/src/child.c
index bfa03ab..1ca97dc 100644
--- a/src/child.c
+++ b/src/child.c
@@ -54,8 +54,8 @@ static struct child_s *child_ptr;
static struct child_config_s
{
- int maxclients, maxrequestsperchild;
- int maxspareservers, minspareservers, startservers;
+ unsigned int maxclients, maxrequestsperchild;
+ unsigned int maxspareservers, minspareservers, startservers;
} child_config;
static unsigned int *servers_waiting; /* servers waiting for a connection */
@@ -142,7 +142,7 @@ _child_lock_release (void)
* Set the configuration values for the various child related settings.
*/
short int
-child_configure (child_config_t type, int val)
+child_configure (child_config_t type, unsigned int val)
{
switch (type)
{
diff --git a/src/child.h b/src/child.h
index dc19360..1085b0d 100644
--- a/src/child.h
+++ b/src/child.h
@@ -36,6 +36,6 @@ extern void child_close_sock (void);
extern void child_main_loop (void);
extern void child_kill_children (void);
-extern short int child_configure (child_config_t type, int val);
+extern short int child_configure (child_config_t type, unsigned int val);
#endif