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 5d46bf1..8d14fe2 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 {