diff options
author | 2015-01-08 17:30:07 -0500 | |
---|---|---|
committer | 2015-01-11 18:17:33 -0500 | |
commit | 4968105790c65af58d4ab42bffa2a4bedc0be8ee (patch) | |
tree | 671df60ccecab777fe10672b115bfe870bbd5bde /src/sleep | |
parent | bus-proxy: implement 'at_console' (diff) | |
download | systemd-4968105790c65af58d4ab42bffa2a4bedc0be8ee.tar.gz systemd-4968105790c65af58d4ab42bffa2a4bedc0be8ee.tar.bz2 systemd-4968105790c65af58d4ab42bffa2a4bedc0be8ee.zip |
Simplify execute_directory()
Remove the optional sepearate opening of the directory,
it would be just too complicated with the change to
multiple directories.
Move the middle of execute_directory() to a seperate
function to make it easier to grok.
Diffstat (limited to 'src/sleep')
-rw-r--r-- | src/sleep/sleep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 56b963a72..2fb5f0c8e 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -107,7 +107,7 @@ static int execute(char **modes, char **states) { if (r < 0) return r; - execute_directory(SYSTEM_SLEEP_PATH, NULL, DEFAULT_TIMEOUT_USEC, arguments); + execute_directory(SYSTEM_SLEEP_PATH, DEFAULT_TIMEOUT_USEC, arguments); log_struct(LOG_INFO, LOG_MESSAGE_ID(SD_MESSAGE_SLEEP_START), @@ -126,7 +126,7 @@ static int execute(char **modes, char **states) { NULL); arguments[1] = (char*) "post"; - execute_directory(SYSTEM_SLEEP_PATH, NULL, DEFAULT_TIMEOUT_USEC, arguments); + execute_directory(SYSTEM_SLEEP_PATH, DEFAULT_TIMEOUT_USEC, arguments); return r; } |