From b3a4fe741036594f17c965926cb352b13dc6f5cb Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 28 Jan 2009 01:02:34 +0100 Subject: [PATCH] Don't suggest putting values in an enum that are not in the enum. Compilers may assume that variables of enumerated type only contain values in the enumeration. --- include/privilege.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/privilege.h b/include/privilege.h index 46d5cd9..a3e5bff 100644 --- a/include/privilege.h +++ b/include/privilege.h @@ -26,9 +26,10 @@ #include "stdinc.h" -typedef enum { +enum { PRIV_NEEDOPER = 1 -} PrivilegeFlags; +}; +typedef unsigned int PrivilegeFlags; struct PrivilegeSet { unsigned int status; /* If CONF_ILLEGAL, delete when no refs */