From: jongfoster Date: Thu, 7 Jun 2001 23:04:34 +0000 (+0000) Subject: Made get_actions() static. X-Git-Tag: v_2_9_9~372 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=4add255d493010daf910f60aeeb8fe54cc21726b Made get_actions() static. --- diff --git a/actions.c b/actions.c index 7ad2bc05..258862fd 100644 --- a/actions.c +++ b/actions.c @@ -1,4 +1,4 @@ -const char actions_rcs[] = "$Id: actions.c,v 1.5 2001/06/03 11:03:48 oes Exp $"; +const char actions_rcs[] = "$Id: actions.c,v 1.5 2001/06/03 19:11:48 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/actions.c,v $ @@ -33,6 +33,9 @@ const char actions_rcs[] = "$Id: actions.c,v 1.5 2001/06/03 11:03:48 oes Exp $"; * * Revisions : * $Log: actions.c,v $ + * Revision 1.5 2001/06/03 19:11:48 oes + * adapted to new enlist_unique arg format + * * Revision 1.5 2001/06/03 11:03:48 oes * Makefile/in * @@ -120,6 +123,8 @@ const char actions_rcs[] = "$Id: actions.c,v 1.5 2001/06/03 11:03:48 oes Exp $"; const char actions_h_rcs[] = ACTIONS_H_VERSION; + +/* Turn off everything except forwarding */ /* This structure is used to hold user-defined aliases */ struct action_alias { @@ -131,9 +136,9 @@ struct action_alias /* * Must declare this in this file for the above structure. - * FIXME: Make this static or put structure in header. */ -extern int get_actions (char *line, struct action_alias * alias_list, +static int get_actions (char *line, + struct action_alias * alias_list, struct action_spec *cur_action); /* @@ -452,8 +457,9 @@ int get_action_token(char **line, char **name, char **value) * nonzero => Error (line was trashed anyway) * *********************************************************************/ -int get_actions(char *line, struct action_alias * alias_list, - struct action_spec *cur_action) +static int get_actions(char *line, + struct action_alias * alias_list, + struct action_spec *cur_action) { memset(cur_action, '\0', sizeof(*cur_action)); cur_action->mask = ACTION_MASK_ALL;