From a36e3a02f46bdd559aefb4b225cb5817317fa2b0 Mon Sep 17 00:00:00 2001 From: Bogomil Vasilev Date: Sat, 12 Jan 2019 17:46:04 +0200 Subject: [PATCH] hide queue vars, remove legacy name in log.h --- src/job_queue.c | 4 ++-- src/log.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/job_queue.c b/src/job_queue.c index 8afe811..980e234 100644 --- a/src/job_queue.c +++ b/src/job_queue.c @@ -24,8 +24,8 @@ #include "sql.h" #include "job_queue.h" -struct msg_t **slot; -int total_queues; +static struct msg_t **slot; +static int total_queues; int start_msg_queue(void) { diff --git a/src/log.h b/src/log.h index b66bb6a..311bc95 100644 --- a/src/log.h +++ b/src/log.h @@ -19,11 +19,11 @@ * along with RMPS. If not, see . */ -#ifndef LOG_TRACE_H -#define LOG_TRACE_H +#ifndef LOGGING +#define LOGGING #undef log -#define log log_trace +#define log logging enum LOG_LEVEL { ERROR = 1, /* Errors only */ @@ -35,5 +35,5 @@ enum LOG_LEVEL { void log_ssl(void); void log(enum LOG_LEVEL lvl, char *fmt, ...); -#endif /* LOG_TRACE_H */ +#endif /* LOGGING */