chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove src/backlight
[elogind.git]
/
src
/
sleep
/
sleep.c
diff --git
a/src/sleep/sleep.c
b/src/sleep/sleep.c
index 56b963a7292165865f407cb573e836bd27ce10f4..eee6bc89829ab9a8f2d24255e28d5ecc804451b6 100644
(file)
--- a/
src/sleep/sleep.c
+++ b/
src/sleep/sleep.c
@@
-22,10
+22,8
@@
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <errno.h>
-#include <string.h>
#include <getopt.h>
#include <getopt.h>
-#include "sd-id128.h"
#include "sd-messages.h"
#include "log.h"
#include "util.h"
#include "sd-messages.h"
#include "log.h"
#include "util.h"
@@
-92,6
+90,7
@@
static int execute(char **modes, char **states) {
arg_verb,
NULL
};
arg_verb,
NULL
};
+ static const char* const dirs[] = {SYSTEM_SLEEP_PATH, NULL};
int r;
_cleanup_fclose_ FILE *f = NULL;
int r;
_cleanup_fclose_ FILE *f = NULL;
@@
-107,7
+106,7
@@
static int execute(char **modes, char **states) {
if (r < 0)
return r;
if (r < 0)
return r;
- execute_director
y(SYSTEM_SLEEP_PATH, NULL
, DEFAULT_TIMEOUT_USEC, arguments);
+ execute_director
ies(dirs
, DEFAULT_TIMEOUT_USEC, arguments);
log_struct(LOG_INFO,
LOG_MESSAGE_ID(SD_MESSAGE_SLEEP_START),
log_struct(LOG_INFO,
LOG_MESSAGE_ID(SD_MESSAGE_SLEEP_START),
@@
-126,7
+125,7
@@
static int execute(char **modes, char **states) {
NULL);
arguments[1] = (char*) "post";
NULL);
arguments[1] = (char*) "post";
- execute_director
y(SYSTEM_SLEEP_PATH, NULL
, DEFAULT_TIMEOUT_USEC, arguments);
+ execute_director
ies(dirs
, DEFAULT_TIMEOUT_USEC, arguments);
return r;
}
return r;
}