Simplify logger_init() parameters

We're passing the t_configuration_options structure anyway, no need to
pass items it contains as separate parameters.
This commit is contained in:
Ian Barwick
2015-11-19 14:03:14 +09:00
parent 3072139d06
commit f64c42a514
4 changed files with 7 additions and 6 deletions

5
log.c
View File

@@ -141,8 +141,11 @@ log_verbose(int level, const char *fmt, ...)
bool
logger_init(t_configuration_options * opts, const char *ident, const char *level, const char *facility)
logger_init(t_configuration_options * opts, const char *ident)
{
char *level = opts->loglevel;
char *facility = opts->logfacility;
int l;
int f;