]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: make the invalid entry of the enum -1
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 25 Aug 2015 19:07:41 +0000 (21:07 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 25 Aug 2015 19:15:54 +0000 (21:15 +0200)
Set _EXEC_UTMP_MODE_INVALID to -1. This matches the return value from
string_table_lookup.

src/core/execute.h

index 5d46bf154cad32d5d9351bf1693426f0b5b82d4a..8d14fe23d07b89810d5c767165c78506c4c0245a 100644 (file)
@@ -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 {