summaryrefslogtreecommitdiff
path: root/src/shared/condition.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/shared/condition.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/shared/condition.c')
-rw-r--r--src/shared/condition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/condition.c b/src/shared/condition.c
index 2acf36d468..852bdda082 100644
--- a/src/shared/condition.c
+++ b/src/shared/condition.c
@@ -471,7 +471,7 @@ static int condition_test_needs_update(Condition *c) {
uint64_t timestamp;
int r;
- r = parse_env_file(NULL, p, NULL, "TIMESTAMP_NSEC", &timestamp_str, NULL);
+ r = parse_env_file(NULL, p, "TIMESTAMP_NSEC", &timestamp_str, NULL);
if (r < 0) {
log_error_errno(r, "Failed to parse timestamp file '%s', using mtime: %m", p);
return true;