Browse Source

MT#55283 update NONE flags to gboolean

Also move `version` out of the global namespace.

Change-Id: I72e222fa6c533fc21d8391a861bdb804285895d6
pull/1819/head
Richard Fuchs 2 years ago
parent
commit
8d3b43a445
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      lib/auxlib.c
  2. +4
    -4
      lib/auxlib.h

+ 1
- 1
lib/auxlib.c View File

@ -21,7 +21,6 @@ struct thread_buf {
char buf[THREAD_BUF_SIZE];
};
static int version;
struct rtpengine_common_config *rtpe_common_config_ptr;
__thread struct timeval rtpe_now;
volatile bool rtpe_shutdown;
@ -166,6 +165,7 @@ void config_load(int *argc, char ***argv, GOptionEntry *app_entries, const char
int fatal = 0;
g_autoptr(char_p) saved_argv = g_strdupv(*argv);
int saved_argc = *argc;
gboolean version = false;
rtpe_common_config_ptr = cconfig;


+ 4
- 4
lib/auxlib.h View File

@ -24,14 +24,14 @@ struct rtpengine_common_config {
char *log_facility;
int default_log_level;
int log_levels[MAX_LOG_LEVELS];
int log_stderr;
int split_logs;
int no_log_timestamps;
gboolean log_stderr;
gboolean split_logs;
gboolean no_log_timestamps;
char *log_name;
char *log_mark_prefix;
char *log_mark_suffix;
char *pidfile;
int foreground;
gboolean foreground;
int thread_stack;
int poller_size;
int max_log_line_length;


Loading…
Cancel
Save