child: adapt child_config to contain unsigned integers
as just changed in get_int_arg. Michael
This commit is contained in:
parent
b4d8c5b9bf
commit
60de38ceaa
@ -54,8 +54,8 @@ static struct child_s *child_ptr;
|
|||||||
|
|
||||||
static struct child_config_s
|
static struct child_config_s
|
||||||
{
|
{
|
||||||
int maxclients, maxrequestsperchild;
|
unsigned int maxclients, maxrequestsperchild;
|
||||||
int maxspareservers, minspareservers, startservers;
|
unsigned int maxspareservers, minspareservers, startservers;
|
||||||
} child_config;
|
} child_config;
|
||||||
|
|
||||||
static unsigned int *servers_waiting; /* servers waiting for a connection */
|
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.
|
* Set the configuration values for the various child related settings.
|
||||||
*/
|
*/
|
||||||
short int
|
short int
|
||||||
child_configure (child_config_t type, int val)
|
child_configure (child_config_t type, unsigned int val)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
@ -36,6 +36,6 @@ extern void child_close_sock (void);
|
|||||||
extern void child_main_loop (void);
|
extern void child_main_loop (void);
|
||||||
extern void child_kill_children (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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user