diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-08-25 21:07:41 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-08-25 21:15:54 +0200 |
commit | 2307f37e464ba0ade335c856138269c5d0bfeb6d (patch) | |
tree | 6b522a2151d85d250d37b94e935d0efae6d5b895 /src/core/execute.h | |
parent | 33c1c9745ccc478c8eda72f8bae76945487076ae (diff) |
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.
Diffstat (limited to 'src/core/execute.h')
-rw-r--r-- | src/core/execute.h | 2 |
1 files changed, 1 insertions, 1 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 { |