From 35196f7d8eff8bb86136aa89fba76da036c62ecf Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Tue, 24 Aug 2004 16:33:00 +0000 Subject: 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.) --- src/child.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3