diff options
author | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-11-16 20:09:49 +0000 |
---|---|---|
committer | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-11-16 20:09:49 +0000 |
commit | 0f437b8f49c84166d51251ef6753f0a60d0f92ca (patch) | |
tree | 8f88823b0bedc278db244c5b934b8fbfc25ffd7d /epan/dissectors | |
parent | edafe33a4621153bcdd9a0d51b23027179f5da36 (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).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39888 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-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:"" |