summaryrefslogtreecommitdiffstats
path: root/src/sleep
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-22 20:55:34 +0200
committerLennart Poettering <lennart@poettering.net>2017-09-22 20:55:34 +0200
commitb18371338345cfbcc1831dea742300d0889b4428 (patch)
treebe427bfb97bd8324faea04e0a8c6983e554e12e5 /src/sleep
parentfileio: support writing atomic files with timestamp (diff)
downloadsystemd-b18371338345cfbcc1831dea742300d0889b4428.tar.xz
systemd-b18371338345cfbcc1831dea742300d0889b4428.zip
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 4c171a2fe5..4d774c90b3 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -66,7 +66,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",