X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Flog.c;h=e05dd65689cf0d226e3f1a22895ff3043049fca0;hp=521ea92efd16c892d4c1f3352f28a87db35e175d;hb=a1f1ad7cadfc2cf8afeeb953644a7508eaba957e;hpb=70cec624a0e54f3c35aff781645b07452fc32596 diff --git a/src/basic/log.c b/src/basic/log.c index 521ea92ef..e05dd6568 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -985,7 +985,7 @@ int log_set_max_level_from_string(const char *e) { return 0; } -static int parse_proc_cmdline_item(const char *key, const char *value) { +static int parse_proc_cmdline_item(const char *key, const char *value, void *data) { /* * The systemd.log_xyz= settings are parsed by all tools, and @@ -1030,7 +1030,7 @@ void log_parse_environment(void) { /* Only try to read the command line in daemons. We assume that anything that has a controlling tty is user stuff. */ - (void) parse_proc_cmdline(parse_proc_cmdline_item); + (void) parse_proc_cmdline(parse_proc_cmdline_item, NULL); e = secure_getenv("SYSTEMD_LOG_TARGET"); if (e && log_set_target_from_string(e) < 0)