X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=showargs.c;h=e4971824edd704fdb9f73992d835b1b0efce7af1;hp=6491418c1dc096e8798909e002a8425ede71991d;hb=96b6398ac456a7ab6ab8563ec05bb7734222bc88;hpb=9d8a8f5190b3addf42b8c9d137d27cdaa2a9eea4 diff --git a/showargs.c b/showargs.c index 6491418c..e4971824 100644 --- a/showargs.c +++ b/showargs.c @@ -1,4 +1,4 @@ -const char showargs_rcs[] = "$Id: showargs.c,v 1.12 2001/06/04 10:41:52 swa Exp $"; +const char showargs_rcs[] = "$Id: showargs.c,v 1.14 2001/06/07 23:15:40 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/showargs.c,v $ @@ -33,6 +33,13 @@ const char showargs_rcs[] = "$Id: showargs.c,v 1.12 2001/06/04 10:41:52 swa Exp * * Revisions : * $Log: showargs.c,v $ + * Revision 1.14 2001/06/07 23:15:40 jongfoster + * Removing config->proxy_args_gateways + * Missing return statement added to end_proxy_args(). + * + * Revision 1.13 2001/06/06 09:37:59 sarantis + * Fix misplaced comment start. + * * Revision 1.12 2001/06/04 10:41:52 swa * show version string of cgi.h and cgi.c * @@ -237,7 +244,7 @@ const char showargs_h_rcs[] = SHOWARGS_H_VERSION; *********************************************************************/ void savearg(char *c, char *o, struct configuration_spec * config) { - char buf[BUFSIZ]; + char buf[BUFFER_SIZE]; *buf = '\0'; @@ -291,12 +298,10 @@ void savearg(char *c, char *o, struct configuration_spec * config) *********************************************************************/ void init_proxy_args(int argc, const char *argv[], struct configuration_spec * config) { - const struct gateway *g; char * b = NULL; int i; freez(config->proxy_args_header); - freez(config->proxy_args_gateways); for (i=0; i < argc; i++) @@ -305,14 +310,6 @@ void init_proxy_args(int argc, const char *argv[], struct configuration_spec * c b = strsav(b, " "); } config->proxy_args_header = b; - - b = NULL; - for (g = gateways; g->name; g++) - { - b = strsav(b, g->name); - b = strsav(b, " "); - } - config->proxy_args_gateways = b; } @@ -330,7 +327,7 @@ void init_proxy_args(int argc, const char *argv[], struct configuration_spec * c char *end_proxy_args(struct configuration_spec * config) { char *b = NULL; - char buf[BUFSIZ]; + char buf[BUFFER_SIZE]; /* Instead of including *all* dot h's in the project (thus creating a * tremendous amount of dependencies), I will concede to declaring them @@ -523,6 +520,7 @@ char *end_proxy_args(struct configuration_spec * config) config->proxy_args_trailer = b; + return b; }