Moved bind_address inside the config structure.

This commit is contained in:
Robert James Kaes 2002-04-24 16:45:45 +00:00
parent e7c7c91d71
commit 89ada2df28
3 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $Id: grammar.y,v 1.9 2002-04-22 19:33:01 rjkaes Exp $ /* $Id: grammar.y,v 1.10 2002-04-24 16:45:45 rjkaes Exp $
* *
* This is the grammar for tinyproxy's configuration file. It needs to be * This is the grammar for tinyproxy's configuration file. It needs to be
* in sync with scanner.l. If you know more about yacc and lex than I do * in sync with scanner.l. If you know more about yacc and lex than I do
@ -155,7 +155,7 @@ statement
| KW_BIND NUMERIC_ADDRESS | KW_BIND NUMERIC_ADDRESS
{ {
log_message(LOG_INFO, "Binding outgoing connections to %s", $2); log_message(LOG_INFO, "Binding outgoing connections to %s", $2);
bind_address = $2; config.bind_address = $2;
} }
; ;

View File

@ -1,4 +1,4 @@
/* $Id: tinyproxy.c,v 1.28 2002-04-22 19:34:20 rjkaes Exp $ /* $Id: tinyproxy.c,v 1.29 2002-04-24 16:45:45 rjkaes Exp $
* *
* The initialise routine. Basically sets up all the initial stuff (logfile, * The initialise routine. Basically sets up all the initial stuff (logfile,
* listening socket, config options, etc.) and then sits there and loops * listening socket, config options, etc.) and then sits there and loops
@ -45,7 +45,6 @@ extern FILE *yyin;
struct config_s config; struct config_s config;
float load = 0.00; float load = 0.00;
bool_t log_rotation_request = FALSE; bool_t log_rotation_request = FALSE;
char* bind_address = NULL;
bool_t processed_config_file = FALSE; bool_t processed_config_file = FALSE;
/* /*

View File

@ -1,4 +1,4 @@
/* $Id: tinyproxy.h,v 1.29 2002-04-22 19:34:20 rjkaes Exp $ /* $Id: tinyproxy.h,v 1.30 2002-04-24 16:45:45 rjkaes Exp $
* *
* See 'tinyproxy.c' for a detailed description. * See 'tinyproxy.c' for a detailed description.
* *
@ -213,13 +213,12 @@ struct config_s {
#endif /* UPSTREAM_SUPPORT */ #endif /* UPSTREAM_SUPPORT */
char *pidpath; char *pidpath;
unsigned int idletimeout; unsigned int idletimeout;
char* bind_address;
}; };
/* Global Structures used in the program */ /* Global Structures used in the program */
extern struct config_s config; extern struct config_s config;
extern bool_t log_rotation_request; extern bool_t log_rotation_request;
extern char* bind_address;
extern bool_t processed_config_file; extern bool_t processed_config_file;
#endif #endif