diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-11-16 20:09:49 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-11-16 20:09:49 +0000 |
commit | 934c2ce1a2ddd15b271b6f55efda9c5d9a321396 (patch) | |
tree | 8f88823b0bedc278db244c5b934b8fbfc25ffd7d /epan/dissectors/packet-xmpp-utils.h | |
parent | 6328122ba376ff6a6f14571663a3eecd2566fe38 (diff) |
Move FI_RESET_FLAG and PROTO_ITEM_SET_VISIBLE macros to proto.h and fix the FI_RESET_FLAG macro, being sure to use the 1's complement operator, '~', instead of the logical negation operator, '!'. (Fixes Coverity CID 1326).
svn path=/trunk/; revision=39888
Diffstat (limited to 'epan/dissectors/packet-xmpp-utils.h')
-rw-r--r-- | epan/dissectors/packet-xmpp-utils.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/epan/dissectors/packet-xmpp-utils.h b/epan/dissectors/packet-xmpp-utils.h index c9c3979bf0..0ac0618092 100644 --- a/epan/dissectors/packet-xmpp-utils.h +++ b/epan/dissectors/packet-xmpp-utils.h @@ -26,18 +26,6 @@ #ifndef XMPP_UTILS_H #define XMPP_UTILS_H -#define FI_RESET_FLAG(fi, flag) \ - do { \ - if (fi) \ - (fi)->flags = (fi)->flags & !(flag); \ - } while(0) - -#define PROTO_ITEM_SET_VISIBLE(proto_item) \ - do { \ - if (proto_item) \ - FI_RESET_FLAG(PITEM_FINFO(proto_item), FI_HIDDEN); \ - } while(0) - #define xmpp_elem_cdata(elem) \ elem->data?elem->data->value:"" |