From: Thomas Hindoe Paaboel Andersen Date: Tue, 25 Aug 2015 19:07:41 +0000 (+0200) Subject: execute: make the invalid entry of the enum -1 X-Git-Tag: v225~23^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2307f37e464ba0ade335c856138269c5d0bfeb6d;p=thirdparty%2Fsystemd.git execute: make the invalid entry of the enum -1 Set _EXEC_UTMP_MODE_INVALID to -1. This matches the return value from string_table_lookup. --- diff --git a/src/core/execute.h b/src/core/execute.h index 5d46bf154ca..8d14fe23d07 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 {