diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-05-31 23:02:21 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-05-31 23:02:21 +0000 |
commit | 77ca1c8ce0df4d7733bb5a382ca8c18adba93e1c (patch) | |
tree | 75dee7eb6b1f1de3ddbdd4104a2fdd112322f27a /src/child.c | |
parent | 86c9d6908606c7c47d305b46a242a417c0f22673 (diff) | |
download | tinyproxy-77ca1c8ce0df4d7733bb5a382ca8c18adba93e1c.tar.gz tinyproxy-77ca1c8ce0df4d7733bb5a382ca8c18adba93e1c.zip |
# Changed all the for calls to use the != test rather than < test.
The change was recommended in the C/C++ User Journal magazine.
Diffstat (limited to '')
-rw-r--r-- | src/child.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/child.c b/src/child.c index cc0a16b..9726aa8 100644 --- a/src/child.c +++ b/src/child.c @@ -1,4 +1,4 @@ -/* $Id: child.c,v 1.10 2003-04-16 18:04:58 rjkaes Exp $ +/* $Id: child.c,v 1.11 2003-05-31 23:02:21 rjkaes Exp $ * * Handles the creation/destruction of the various children required for * processing incoming connections. @@ -319,12 +319,12 @@ child_pool_create(void) child_config.startservers = child_config.maxclients; } - for (i = 0; i < child_config.maxclients; i++) { + for (i = 0; i != child_config.maxclients; i++) { child_ptr[i].status = T_EMPTY; child_ptr[i].connects = 0; } - for (i = 0; i < child_config.startservers; i++) { + for (i = 0; i != child_config.startservers; i++) { DEBUG2("Trying to create child %d of %d", i + 1, child_config.startservers); child_ptr[i].status = T_WAITING; child_ptr[i].tid = child_make(&child_ptr[i]); @@ -370,7 +370,7 @@ child_main_loop(void) SERVER_COUNT_UNLOCK(); - for (i = 0; i < child_config.maxclients; i++) { + for (i = 0; i != child_config.maxclients; i++) { if (child_ptr[i].status == T_EMPTY) { child_ptr[i].status = T_WAITING; child_ptr[i].tid = child_make(&child_ptr[i]); @@ -418,7 +418,7 @@ child_kill_children(void) { int i; - for (i = 0; i < child_config.maxclients; i++) { + for (i = 0; i != child_config.maxclients; i++) { if (child_ptr[i].status != T_EMPTY) kill(child_ptr[i].tid, SIGTERM); } |