From: jongfoster Date: Wed, 23 Jan 2002 01:03:32 +0000 (+0000) Subject: Fixing gcc [CygWin] compiler warnings X-Git-Tag: v_2_9_11~11 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=a25b9a702795c0c1e77ef3fe934915003eb685de Fixing gcc [CygWin] compiler warnings --- diff --git a/cgiedit.c b/cgiedit.c index 0e230eeb..ff653ca7 100644 --- a/cgiedit.c +++ b/cgiedit.c @@ -1,4 +1,4 @@ -const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.9 2002/01/17 20:56:22 jongfoster Exp $"; +const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.10 2002/01/23 00:22:59 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgiedit.c,v $ @@ -42,6 +42,38 @@ const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.9 2002/01/17 20:56:22 jongfoster * * Revisions : * $Log: cgiedit.c,v $ + * Revision 1.10 2002/01/23 00:22:59 jongfoster + * Adding new function cgi_edit_actions_section_swap(), to reorder + * the actions file. + * + * Adding get_url_spec_param() to get a validated URL pattern. + * + * Moving edit_read_line() out of this file and into loaders.c. + * + * Adding missing html_encode() to many CGI functions. + * + * Moving the functions that #include actionlist.h to the end of the file, + * because the Visual C++ 97 debugger gets extremely confused if you try + * to debug any code that comes after them in the file. + * + * Major optimizations in cgi_edit_actions_list() to reduce the size of + * the generated HTML (down 40% from 550k to 304k), with major side-effects + * throughout the editor and templates. In particular, the length of the + * URLs throughout the editor has been drastically reduced, by cutting + * paramater names down to 1 character and CGI names down to 3-4 + * characters, by removing all non-essential CGI paramaters even at the + * expense of having to re-read the actions file for the most trivial + * page, and by using relative rather than absolute URLs. This means + * that this (typical example): + * + * + * + * is now this: + * + * + * * Revision 1.9 2002/01/17 20:56:22 jongfoster * Replacing hard references to the URL of the config interface * with #defines from project.h @@ -287,10 +319,11 @@ static jb_err actions_from_radio(const struct map * parameters, static jb_err map_copy_parameter_html(struct map *out, const struct map *in, const char *name); +#if 0 /* unused function */ static jb_err map_copy_parameter_url(struct map *out, const struct map *in, const char *name); - +#endif /* unused function */ /********************************************************************* * @@ -340,6 +373,7 @@ static jb_err map_copy_parameter_html(struct map *out, } +#if 0 /* unused function */ /********************************************************************* * * Function : map_copy_parameter_html @@ -386,7 +420,7 @@ static jb_err map_copy_parameter_url(struct map *out, return JB_ERR_OK; } } - +#endif /* 0 - unused function */ /********************************************************************* * diff --git a/cgisimple.c b/cgisimple.c index fe8c3454..b1000941 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.10 2002/01/17 21:10:37 jongfoster Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.11 2002/01/23 00:01:04 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -36,6 +36,11 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.10 2002/01/17 21:10:37 jongfo * * Revisions : * $Log: cgisimple.c,v $ + * Revision 1.11 2002/01/23 00:01:04 jongfoster + * Adding cgi_transparent_gif() for http://i.j.b/t + * Adding missing html_encode() to many CGI functions. + * Adding urlmatch.[ch] to http://i.j.b/show-version + * * Revision 1.10 2002/01/17 21:10:37 jongfoster * Changes to cgi_show_url_info to use new matching code from urlmatch.c. * Also fixing a problem in the same function with improperly quoted URLs @@ -674,7 +679,6 @@ jb_err cgi_show_url_info(struct client_state *csp, const struct map *parameters) { char *url_param; - char *host = NULL; struct map *exports; assert(csp);