git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c861ca
)
librpc: Change a uint16 to use the max property instead of range
author
Tim Prouty
<tprouty@samba.org>
Thu, 15 Jan 2009 18:57:00 +0000
(10:57 -0800)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/librpc/idl/eventlog.idl
b/librpc/idl/eventlog.idl
index 51b3ea706e32207deedc6756ede369cd1cff1400..fbdec28be734b83b58a679765a15a30f885b73fd 100644
(file)
--- 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;