librpc: Change a uint16 to use the max property instead of range
authorTim Prouty <tprouty@samba.org>
Thu, 15 Jan 2009 18:57:00 +0000 (10:57 -0800)
committerTim Prouty <tprouty@samba.org>
Thu, 15 Jan 2009 22:52:35 +0000 (14:52 -0800)
This fixes a "comparison is always false due to limited range of data
type" warning

librpc/idl/eventlog.idl

index 51b3ea706e32207deedc6756ede369cd1cff1400..fbdec28be734b83b58a679765a15a30f885b73fd 100644 (file)
@@ -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;