mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Remove unused arguments from options_validate().
This change breaks compilation; a subsequent commit will fix it with a coccinelle patch.
This commit is contained in:
parent
697d99e504
commit
8a27023d21
@ -3431,15 +3431,12 @@ options_validate_single_onion(or_options_t *options, char **msg)
|
|||||||
*/
|
*/
|
||||||
STATIC int
|
STATIC int
|
||||||
options_validate(or_options_t *old_options, or_options_t *options,
|
options_validate(or_options_t *old_options, or_options_t *options,
|
||||||
or_options_t *default_options_unused, int from_setconf_unused,
|
|
||||||
char **msg)
|
char **msg)
|
||||||
{
|
{
|
||||||
config_line_t *cl;
|
config_line_t *cl;
|
||||||
const char *uname = get_uname();
|
const char *uname = get_uname();
|
||||||
int n_ports=0;
|
int n_ports=0;
|
||||||
int world_writable_control_socket=0;
|
int world_writable_control_socket=0;
|
||||||
(void)from_setconf_unused; /* 29211 TODO: Remove this from the API. */
|
|
||||||
(void)default_options_unused; /* 29211 TODO: Remove this from the API. */
|
|
||||||
|
|
||||||
tor_assert(msg);
|
tor_assert(msg);
|
||||||
*msg = NULL;
|
*msg = NULL;
|
||||||
|
@ -279,8 +279,7 @@ STATIC int options_validate_single_onion(or_options_t *options,
|
|||||||
char **msg);
|
char **msg);
|
||||||
STATIC int options_validate(or_options_t *old_options,
|
STATIC int options_validate(or_options_t *old_options,
|
||||||
or_options_t *options,
|
or_options_t *options,
|
||||||
or_options_t *default_options,
|
char **msg);
|
||||||
int from_setconf, char **msg);
|
|
||||||
STATIC int parse_transport_line(const or_options_t *options,
|
STATIC int parse_transport_line(const or_options_t *options,
|
||||||
const char *line, int validate_only,
|
const char *line, int validate_only,
|
||||||
int server);
|
int server);
|
||||||
|
Loading…
Reference in New Issue
Block a user