summaryrefslogtreecommitdiffstats
path: root/eurephiadm
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2013-06-05 21:13:31 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2013-06-05 21:13:31 +0200
commit6f80a314b634f63dee9f79b94a31df22e85836b2 (patch)
treef87e9cb9d08fa7d584258c775854fea191cfa37f /eurephiadm
parent340fe83d834865542a30d3507bc59a480e1054c5 (diff)
downloadeurephia-6f80a314b634f63dee9f79b94a31df22e85836b2.tar.gz
eurephia-6f80a314b634f63dee9f79b94a31df22e85836b2.tar.xz
eurephia-6f80a314b634f63dee9f79b94a31df22e85836b2.zip
common: Update callers of eurephia_log_init() to comply with the API changes
This is to enable an improved logging feature in OpenVPN v2.3 and newer. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'eurephiadm')
-rw-r--r--eurephiadm/client_context.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/eurephiadm/client_context.c b/eurephiadm/client_context.c
index 5f03be9..719d02c 100644
--- a/eurephiadm/client_context.c
+++ b/eurephiadm/client_context.c
@@ -1,6 +1,6 @@
/* client_context.c -- Handles eurephia contexts used by admin interfaces
*
- * GPLv2 only - Copyright (C) 2008 - 2012
+ * GPLv2 only - Copyright (C) 2008 - 2013
* David Sommerseth <dazo@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
@@ -73,13 +73,14 @@ eurephiaCTX *eurephiaCTX_init(const char *logident, const char *log,
logfile = eGet_value(cfg, "log");
if( (logfile != NULL) && (log == NULL) ) {
- eurephia_log_init(ctx, logident, logfile, (loglevel > 0 ? loglevel : cfgloglvl));
+ eurephia_log_init(ctx, logident, logfile,
+ (loglevel > 0 ? loglevel : cfgloglvl), NULL);
} else {
// If log file is not set in config, use input log parameter. But if
// no log file is defined even here, use stderr. If no logging is wanted, it
// must be defined as none: in the config file.
eurephia_log_init(ctx, logident, (log != NULL ? log : "stderr:"),
- (loglevel > 0 ? loglevel : cfgloglvl));
+ (loglevel > 0 ? loglevel : cfgloglvl), NULL);
}
if( !eDBlink_init(ctx, dbdriver, 4) ) {