From: iwanttokeepanon Date: Mon, 2 Jul 2001 02:28:25 +0000 (+0000) Subject: Added "#ifdef ACL_FILES" conditional compilation to line 1291 to exclude X-Git-Tag: v_2_9_9~290 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=085c6e7a4a46674c41517ff1086551453721b65d Added "#ifdef ACL_FILES" conditional compilation to line 1291 to exclude the `block_acl' call. This prevents a compilation error when the user does not wish to use the "ACL" feature. --- diff --git a/jcc.c b/jcc.c index cbc88ce0..9ff723b2 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.21 2001/06/29 13:29:36 oes Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.22 2001/06/29 21:45:41 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.21 2001/06/29 13:29:36 oes Exp $"; * * Revisions : * $Log: jcc.c,v $ + * Revision 1.22 2001/06/29 21:45:41 oes + * Indentation, CRLF->LF, Tab-> Space + * * Revision 1.21 2001/06/29 13:29:36 oes * - Cleaned up, improved comments * - Unified all possible interceptors (CGI, @@ -1285,6 +1288,7 @@ static void listen_loop(void) /* Never get here - LOG_LEVEL_FATAL causes program exit */ } +#ifdef ACL_FILES if (block_acl(NULL,csp)) { log_error(LOG_LEVEL_CONNECT, "Connection dropped due to ACL"); @@ -1292,6 +1296,7 @@ static void listen_loop(void) freez(csp); continue; } +#endif /* def ACL_FILES */ /* add it to the list of clients */ csp->next = clients->next;