summaryrefslogtreecommitdiff
path: root/src/sleep
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-22 20:55:34 +0200
committerSven Eden <yamakuzure@gmx.net>2017-09-22 20:55:34 +0200
commit42d58088504bf7fef99f427bf863263c562ec4d3 (patch)
tree86c3ad7fce5503f42caf3ae5c60a0d0d5b0c3593 /src/sleep
parent0d1efe6ec9b637291d4356925b582f743fba4c78 (diff)
fileio: make write_string_stream() accept flags parameter
Let's make write_string_stream() and write_string_file() more alike, and pass the same flag set so that we can remove a number of boolean parameters.
Diffstat (limited to 'src/sleep')
-rw-r--r--src/sleep/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index 01fa22349..c6dd13197 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -69,7 +69,7 @@ static int write_state(FILE **f, char **states) {
STRV_FOREACH(state, states) {
int k;
- k = write_string_stream(*f, *state, true);
+ k = write_string_stream(*f, *state, 0);
if (k == 0)
return 0;
log_debug_errno(k, "Failed to write '%s' to /sys/power/state: %m",