summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-13 02:15:41 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-13 02:15:41 +0200
commit52661efd21608dc7e0ac26b714a9254ed6180ddb (patch)
tree5f64764566711e6a38a664cfc0ee9f9a997e4857 /src/main.c
parente04aad61bb5eff117e51631727a3ef2807c75d6b (diff)
unit: add minimal condition checker for unit startup
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index fa306d6aad..15bd2e4d15 100644
--- a/src/main.c
+++ b/src/main.c
@@ -545,11 +545,9 @@ static int parse_config_file(void) {
}
static int parse_proc_cmdline(void) {
- char *line;
+ char *line, *w, *state;
int r;
- char *w;
size_t l;
- char *state;
if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
log_warning("Failed to read /proc/cmdline, ignoring: %s", strerror(-r));