If the hostname is 'localhost' or not specified, request an AF_INET address.
[privoxy.git] / cgiedit.c
index 0f04169..b1cfb02 100644 (file)
--- a/cgiedit.c
+++ b/cgiedit.c
@@ -1,4 +1,4 @@
-const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.62 2008/08/31 15:59:02 fabiankeil Exp $";
+const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.64 2009/03/01 18:43:09 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgiedit.c,v $
@@ -42,6 +42,12 @@ const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.62 2008/08/31 15:59:02 fabiankeil
  *
  * Revisions   :
  *    $Log: cgiedit.c,v $
+ *    Revision 1.64  2009/03/01 18:43:09  fabiankeil
+ *    Fix cparser warnings.
+ *
+ *    Revision 1.63  2008/12/04 18:15:38  fabiankeil
+ *    Fix some cparser warnings.
+ *
  *    Revision 1.62  2008/08/31 15:59:02  fabiankeil
  *    There's no reason to let remote toggling support depend
  *    on FEATURE_CGI_EDIT_ACTIONS, so make sure it doesn't.
@@ -2637,6 +2643,7 @@ jb_err cgi_edit_actions(struct client_state *csp,
                         struct http_response *rsp,
                         const struct map *parameters)
 {
+   (void)parameters;
 
    if (0 == (csp->config->feature_flags & RUNTIME_FEATURE_CGI_EDIT_ACTIONS))
    {
@@ -4575,8 +4582,8 @@ static void javascriptify(char * identifier)
 static jb_err actions_to_radio(struct map * exports,
                                const struct action_spec *action)
 {
-   unsigned mask = action->mask;
-   unsigned add  = action->add;
+   unsigned long mask;
+   unsigned long add;
    int mapped_param;
    int checked;
    char current_mode;