Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
dbeb8e78
Commit
dbeb8e78
authored
Sep 08, 2005
by
Roger Dingledine
Browse files
it really does help with the functions end.
svn:r4927
parent
74fb0862
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
dbeb8e78
...
...
@@ -257,6 +257,8 @@ typedef struct {
static
void
config_line_append
(
config_line_t
**
lst
,
const
char
*
key
,
const
char
*
val
);
static
void
option_clear
(
config_format_t
*
fmt
,
or_options_t
*
options
,
config_var_t
*
var
);
static
void
option_reset
(
config_format_t
*
fmt
,
or_options_t
*
options
,
config_var_t
*
var
);
static
void
config_free
(
config_format_t
*
fmt
,
void
*
options
);
...
...
@@ -1089,7 +1091,6 @@ options_trial_assign(config_line_t *list, int reset)
static
void
option_clear
(
config_format_t
*
fmt
,
or_options_t
*
options
,
config_var_t
*
var
)
{
config_line_t
*
c
;
void
*
lvalue
=
((
char
*
)
options
)
+
var
->
var_offset
;
switch
(
var
->
type
)
{
case
CONFIG_TYPE_STRING
:
...
...
@@ -1126,6 +1127,7 @@ option_clear(config_format_t *fmt, or_options_t *options, config_var_t *var)
case
CONFIG_TYPE_OBSOLETE
:
break
;
}
}
/** Replace the option indexed by <b>var</b> in <b>options</b> with its
* default value. */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment