From: oes Date: Wed, 20 Nov 2002 14:36:55 +0000 (+0000) Subject: Extended unload_current_actions_file() to multiple AFs. X-Git-Tag: v_3_0_1~77 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=ab4f6e45a68e68b8409d518352a169668ae7881a;p=privoxy.git Extended unload_current_actions_file() to multiple AFs. Thanks to Oliver Stoeneberg for the hint. --- diff --git a/actions.c b/actions.c index 01f2c4a3..8fe59140 100644 --- a/actions.c +++ b/actions.c @@ -1,7 +1,7 @@ -const char actions_rcs[] = "$Id: actions.c,v 1.32 2002/05/12 21:36:29 jongfoster Exp $"; +const char actions_rcs[] = "$Id: actions.c,v 1.32.2.1 2002/05/26 12:13:16 roro Exp $"; /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/actions.c,v $ + * File : $Source: /cvsroot/ijbswa/current/Attic/actions.c,v $ * * Purpose : Declares functions to work with actions files * Functions declared include: FIXME @@ -33,6 +33,10 @@ const char actions_rcs[] = "$Id: actions.c,v 1.32 2002/05/12 21:36:29 jongfoster * * Revisions : * $Log: actions.c,v $ + * Revision 1.32.2.1 2002/05/26 12:13:16 roro + * Change unsigned to unsigned long in actions_name struct. This closes + * SourceForge Bug #539284. + * * Revision 1.32 2002/05/12 21:36:29 jongfoster * Correcting function comments * @@ -874,10 +878,15 @@ static struct file_list *current_actions_file[MAX_ACTION_FILES] = { *********************************************************************/ void unload_current_actions_file(void) { - if (current_actions_file) + int i; + + for (i = 0; i < MAX_ACTION_FILES; i++) { - current_actions_file->unloader = unload_actions_file; - current_actions_file = NULL; + if (current_actions_file[i]) + { + current_actions_file[i]->unloader = unload_actions_file; + current_actions_file[i] = NULL; + } } } #endif /* FEATURE_GRACEFUL_TERMINATION */