]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/sleep/sleep.c
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / sleep / sleep.c
index 4c171a2fe5da8d585803f6b5c4adafefa25e394b..518032ec69c2d2a9999559dbee5a1c0eb24e6562 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -66,7 +67,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",