Move LOG_PROTOCOL_WARN to app/config.h

LOG_PROTOCOL_WARN was in core/or.h, but the function it depends on is in
app/config.h. Put them in the same header, to reduce dependencies.

Part of 33633.
This commit is contained in:
teor 2020-04-01 09:14:47 +10:00
parent 81687f5bc9
commit f863954f1e
2 changed files with 2 additions and 2 deletions

View File

@ -42,6 +42,8 @@ const char *escaped_safe_str(const char *address);
void init_protocol_warning_severity_level(void); void init_protocol_warning_severity_level(void);
int get_protocol_warning_severity_level(void); int get_protocol_warning_severity_level(void);
#define LOG_PROTOCOL_WARN (get_protocol_warning_severity_level())
/** An error from options_trial_assign() or options_init_from_string(). */ /** An error from options_trial_assign() or options_init_from_string(). */
typedef enum setopt_err_t { typedef enum setopt_err_t {
SETOPT_OK = 0, SETOPT_OK = 0,

View File

@ -995,8 +995,6 @@ typedef struct routerset_t routerset_t;
typedef struct or_options_t or_options_t; typedef struct or_options_t or_options_t;
#define LOG_PROTOCOL_WARN (get_protocol_warning_severity_level())
typedef struct or_state_t or_state_t; typedef struct or_state_t or_state_t;
#define MAX_SOCKS_ADDR_LEN 256 #define MAX_SOCKS_ADDR_LEN 256