chiark / gitweb /
resolved: properly handle MTU logic
[elogind.git] / src / sleep / sleep.c
index 94bcb2944a73ccdd93d4678f27899c6374605e20..5adbea5956ba75963374ece1b93fe5139c86563d 100644 (file)
@@ -68,7 +68,7 @@ static int write_state(FILE **f, char **states) {
         STRV_FOREACH(state, states) {
                 int k;
 
-                k = write_string_to_file(*f, *state);
+                k = write_string_stream(*f, *state);
                 if (k == 0)
                         return 0;
                 log_debug("Failed to write '%s' to /sys/power/state: %s",
@@ -135,6 +135,7 @@ static int execute(char **modes, char **states) {
 }
 
 static int help(void) {
+
         printf("%s COMMAND\n\n"
                "Suspend the system, hibernate the system, or both.\n\n"
                "Commands:\n"