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.
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user