From: Tim Prouty Date: Thu, 15 Jan 2009 18:57:00 +0000 (-0800) Subject: librpc: Change a uint16 to use the max property instead of range X-Git-Tag: samba-4.0.0alpha6~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c59ec17dddfa98f44baf6a3195b6ebf5cad8f016;p=thirdparty%2Fsamba.git librpc: Change a uint16 to use the max property instead of range This fixes a "comparison is always false due to limited range of data type" warning --- diff --git a/librpc/idl/eventlog.idl b/librpc/idl/eventlog.idl index 51b3ea706e3..fbdec28be73 100644 --- a/librpc/idl/eventlog.idl +++ b/librpc/idl/eventlog.idl @@ -40,7 +40,7 @@ import "lsa.idl", "security.idl"; time_t time_written; uint32 event_id; eventlogEventTypes event_type; - [range(0,256)] uint16 num_of_strings; + [max(256)] uint16 num_of_strings; uint16 event_category; uint16 reserved_flags; uint32 closing_record_number;