Put declarations at top of file

This commit is contained in:
Ian Barwick
2015-10-27 13:17:18 +09:00
parent 1e202540e3
commit 42cb811a07

13
log.c
View File

@@ -39,6 +39,13 @@
/* #define REPMGR_DEBUG */
static int detect_log_level(const char *level);
static int detect_log_facility(const char *facility);
int log_type = REPMGR_STDERR;
int log_level = LOG_NOTICE;
void
stderr_log_with_level(const char *level_name, int level, const char *fmt, ...)
{
@@ -63,12 +70,6 @@ stderr_log_with_level(const char *level_name, int level, const char *fmt, ...)
}
static int detect_log_level(const char *level);
static int detect_log_facility(const char *facility);
int log_type = REPMGR_STDERR;
int log_level = LOG_NOTICE;
bool
logger_init(t_configuration_options * opts, const char *ident, const char *level, const char *facility)
{