From: Fabian Keil Date: Sun, 13 Jun 2010 12:27:03 +0000 (+0000) Subject: In main(), limit the scope of the variable pid. X-Git-Tag: v_3_0_17~136 X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@toggle?a=commitdiff_plain;h=b302b2dc2c8fba30ad5389549927bca6c3bdce71;p=privoxy.git In main(), limit the scope of the variable pid. --- diff --git a/jcc.c b/jcc.c index eed60fac..722d7fd1 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.318 2010/05/24 11:38:22 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.319 2010/05/24 11:40:27 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -3145,13 +3145,10 @@ int main(int argc, char **argv) */ #if defined(unix) { - pid_t pid = 0; - if (daemon_mode) { int fd; - - pid = fork(); + pid_t pid = fork(); if ( pid < 0 ) /* error */ {