X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=actions.c;h=d87d37450cbc0dd7d089c354ab05658a778b0667;hp=967a974023c7a6f5f4d377db809f6a0c5a9a1faa;hb=e8db07c2f0720685bb504013a6a1e576b0cf718f;hpb=44e93e6343f9fe1deb9ad4852683fe5ca8e9a01b diff --git a/actions.c b/actions.c index 967a9740..d87d3745 100644 --- a/actions.c +++ b/actions.c @@ -1,4 +1,4 @@ -const char actions_rcs[] = "$Id: actions.c,v 1.54 2008/09/20 10:04:33 fabiankeil Exp $"; +const char actions_rcs[] = "$Id: actions.c,v 1.56 2009/03/08 14:19:21 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/actions.c,v $ @@ -33,6 +33,13 @@ const char actions_rcs[] = "$Id: actions.c,v 1.54 2008/09/20 10:04:33 fabiankeil * * Revisions : * $Log: actions.c,v $ + * Revision 1.56 2009/03/08 14:19:21 fabiankeil + * Fix justified (but harmless) compiler warnings + * on platforms where sizeof(int) < sizeof(long). + * + * Revision 1.55 2008/12/04 18:18:56 fabiankeil + * Fix some cparser warnings. + * * Revision 1.54 2008/09/20 10:04:33 fabiankeil * Remove hide-forwarded-for-headers action which has * been obsoleted by change-x-forwarded-for{block}. @@ -1123,7 +1130,7 @@ int update_action_bits_for_tag(struct client_state *csp, const char *tag) * Returns : N/A * *********************************************************************/ -void free_current_action (struct current_action_spec *src) +void free_current_action(struct current_action_spec *src) { int i; @@ -1742,9 +1749,9 @@ static int load_one_actions_file(struct client_state *csp, int fileid) *********************************************************************/ char * actions_to_text(const struct action_spec *action) { - unsigned mask = action->mask; - unsigned add = action->add; - char * result = strdup(""); + unsigned long mask = action->mask; + unsigned long add = action->add; + char *result = strdup(""); struct list_entry * lst; /* sanity - prevents "-feature +feature" */ @@ -1831,9 +1838,9 @@ char * actions_to_text(const struct action_spec *action) char * actions_to_html(const struct client_state *csp, const struct action_spec *action) { - unsigned mask = action->mask; - unsigned add = action->add; - char * result = strdup(""); + unsigned long mask = action->mask; + unsigned long add = action->add; + char *result = strdup(""); struct list_entry * lst; /* sanity - prevents "-feature +feature" */