summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2004-08-24 16:33:00 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2004-08-24 16:33:00 +0000
commit35196f7d8eff8bb86136aa89fba76da036c62ecf (patch)
tree2f902529b1f8607101dd22ffa8c7773fe90f68c5
parentd41260fe2df0d8d7f84cccaa894f1182d820945a (diff)
Changed some of the variable types so that the code compiles cleanly
on other operating systems. (Used cf.sourceforge.net as the test system for cross compiling.)
-rw-r--r--src/child.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/child.c b/src/child.c
index 25e8eb9..72a49f2 100644
--- a/src/child.c
+++ b/src/child.c
@@ -1,4 +1,4 @@
-/* $Id: child.c,v 1.15 2004-08-10 21:24:23 rjkaes Exp $
+/* $Id: child.c,v 1.16 2004-08-24 16:33:00 rjkaes Exp $
*
* Handles the creation/destruction of the various children required for
* processing incoming connections.
@@ -189,9 +189,9 @@ child_main(struct child_s* ptr)
if (getenv("TINYPROXY_DEBUG")) {
/* Pause for 10 seconds to allow us to connect debugger */
fprintf(stderr,
- "Process has accepted connection: %u\n", ptr->tid);
+ "Process has accepted connection: %ld\n", (long int)ptr->tid);
sleep(10);
- fprintf(stderr, "Continuing process: %u\n", ptr->tid);
+ fprintf(stderr, "Continuing process: %ld\n", (long int)ptr->tid);
}
#endif
@@ -250,7 +250,7 @@ child_main(struct child_s* ptr)
* Fork a child "child" (or in our case a process) and then start up the
* child_main() function.
*/
-static int
+static pid_t
child_make(struct child_s* ptr)
{
pid_t pid;