[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] simplify
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
config.c
Log Message:
simplify
Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.417
retrieving revision 1.418
diff -u -d -r1.417 -r1.418
--- config.c 14 Sep 2005 02:13:35 -0000 1.417
+++ config.c 14 Sep 2005 02:18:28 -0000 1.418
@@ -873,7 +873,7 @@
*/
static int
config_assign_line(config_format_t *fmt, or_options_t *options,
- config_line_t *c, int use_defaults, int clear_first)
+ config_line_t *c, int use_defaults)
{
config_var_t *var;
@@ -1077,7 +1077,7 @@
Case one: Torrc entry
options_init_from_torrc() calls config_assign(0, 0)
- calls config_assign_line(0, 0).
+ calls config_assign_line(0).
if value is empty, calls option_reset(0) and returns.
calls config_assign_value(), appends.
@@ -1086,7 +1086,7 @@
calls config_reset_line(0)
calls option_reset(0)
calls option_clear().
- calls config_assign_line(0, 1).
+ calls config_assign_line(0).
if value is empty, calls option_reset(0) and returns.
calls config_assign_value(), appends.
@@ -1096,7 +1096,7 @@
calls option_reset(1)
calls option_clear().
calls config_assign_value(default)
- calls config_assign_line(1, 1).
+ calls config_assign_line(1).
calls option_reset(1) and returns.
*/
static int
@@ -1126,7 +1126,7 @@
/* pass 3: assign. */
while (list) {
int r;
- if ((r=config_assign_line(fmt, options, list, use_defaults, clear_first)))
+ if ((r=config_assign_line(fmt, options, list, use_defaults)))
return r;
list = list->next;
}