From 2307f37e464ba0ade335c856138269c5d0bfeb6d Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Tue, 25 Aug 2015 21:07:41 +0200 Subject: 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. --- src/core/execute.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/execute.h') 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 { -- cgit v1.2.3-54-g00ecf