summaryrefslogtreecommitdiff
path: root/src/login/logind-inhibit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-12 14:04:47 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-14 17:01:54 +0100
commitaa8fbc74e3eadf57a15b84cce5778a8eab1d97e6 (patch)
treeea8b676c0cfc8d35dd9977d16a6fcf214704200d /src/login/logind-inhibit.c
parent01771226c202183ff447da712f43d2fad8874484 (diff)
downloadsystemd-aa8fbc74e3eadf57a15b84cce5778a8eab1d97e6.tar.gz
fileio: drop "newline" parameter for env file parsers
Now that we don't (mis-)use the env file parser to parse kernel command lines there's no need anymore to override the used newline character set. Let's hence drop the argument and just "\n\r" always. This nicely simplifies our code.
Diffstat (limited to 'src/login/logind-inhibit.c')
-rw-r--r--src/login/logind-inhibit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c
index b1f45baaca..c45c9fd8c3 100644
--- a/src/login/logind-inhibit.c
+++ b/src/login/logind-inhibit.c
@@ -193,7 +193,7 @@ int inhibitor_load(Inhibitor *i) {
char *cc;
int r;
- r = parse_env_file(NULL, i->state_file, NEWLINE,
+ r = parse_env_file(NULL, i->state_file,
"WHAT", &what,
"UID", &uid,
"PID", &pid,