diff options
author | Daniel Mack <github@zonque.org> | 2015-08-25 23:48:07 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-25 23:48:07 +0200 |
commit | 13918f62ff4c01484a0885c749c04020d47c9765 (patch) | |
tree | 4e73bf61f239c61d3578755e53c99fcc59092125 /src | |
parent | 4ece412faf5c3a4482a174e6c727c8cba63d97b3 (diff) | |
parent | c615b4ba9fc12373620012fcaa762a096249370b (diff) |
Merge pull request #1041 from phomes/master
trivial cleanups
Diffstat (limited to 'src')
-rw-r--r-- | src/core/execute.h | 2 | ||||
-rw-r--r-- | src/machine/machinectl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/execute.h b/src/core/execute.h index 5d46bf154c..8d14fe23d0 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -43,7 +43,7 @@ typedef enum ExecUtmpMode { EXEC_UTMP_LOGIN, EXEC_UTMP_USER, _EXEC_UTMP_MODE_MAX, - _EXEC_UTMP_MODE_INVALID, + _EXEC_UTMP_MODE_INVALID = -1 } ExecUtmpMode; typedef enum ExecInput { diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 6b29e61642..f9f49ee892 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -1225,7 +1225,7 @@ static int process_forward(sd_event *event, PTYForward **forward, int master, bo } static int login_machine(int argc, char *argv[], void *userdata) { - _cleanup_bus_message_unref_ sd_bus_message *reply = NULL, *m = NULL; + _cleanup_bus_message_unref_ sd_bus_message *reply = NULL; _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_(pty_forward_freep) PTYForward *forward = NULL; _cleanup_bus_slot_unref_ sd_bus_slot *slot = NULL; |