0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-15 13:31:54 +00:00

Displaced bird_name to log.c where it rightfully belongs

This commit is contained in:
Maria Matejka 2024-08-26 17:54:59 +02:00
parent bb183c9d0c
commit 7f6284f661
4 changed files with 3 additions and 3 deletions

View File

@ -36,6 +36,7 @@ static pool *log_pool;
static struct rfile *dbg_rf;
static char *current_syslog_name = NULL; /* NULL -> syslog closed */
const char *bird_name = NULL;
_Atomic uint max_thread_id = 1;
_Thread_local uint this_thread_id;
@ -826,6 +827,7 @@ resolve_fail:
void
log_init_debug(char *f)
{
ASSERT_DIE(bird_name);
clock_gettime(CLOCK_MONOTONIC, &dbg_time_start);
if (dbg_rf && dbg_rf != &rf_stderr)

View File

@ -709,7 +709,6 @@ signal_init(void)
static char *opt_list = "bc:dD:ps:P:u:g:flRh";
int parse_and_exit;
char *bird_name;
static char *use_user;
static char *use_group;
static int run_in_foreground = 0;

View File

@ -24,7 +24,7 @@ struct config;
/* main.c */
extern char *bird_name;
extern const char *bird_name;
extern int parse_and_exit;
void async_config(void);
void async_dump(void);

View File

@ -539,7 +539,6 @@ bt_is_char(byte c)
*/
int parse_and_exit;
char *bird_name;
void async_config(void) {}
void async_dump(void) {}
void async_shutdown(void) {}