diff options
author | Evan Huus <eapache@gmail.com> | 2013-03-29 00:26:23 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-03-29 00:26:23 +0000 |
commit | 37600a157ba2036a79a5ebf466b31b8eee19244e (patch) | |
tree | 05b5db07655ce39ffe0c9c42c62d30a0c389b8df /epan/dissectors/packet-iapp.c | |
parent | 6f19d87f4e3aaa5872bdec1d9f4e50d85eee193d (diff) |
Rename value string (and similar) functions to use a consistent pattern. This
was done using textual search+replace, not anything syntax-aware, so presumably
it got most comments as well (except where there were typos).
Use a consistent coding style, and make proper use of the WS_DLL_* defines.
Group the functions appropriately in the header.
I ended up getting rid of most of the explanatory comments since many of them
duplicated what was in the value_string.c file (and were out of sync with the
recent updates I made to those in r48633). Presumably most of the comments
should be in the .h file not the .c file, but there's enough churn ahead that
it's not worth fixing yet.
Part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8467
svn path=/trunk/; revision=48634
Diffstat (limited to 'epan/dissectors/packet-iapp.c')
-rw-r--r-- | epan/dissectors/packet-iapp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-iapp.c b/epan/dissectors/packet-iapp.c index d518c6a5d1..52e101b04c 100644 --- a/epan/dissectors/packet-iapp.c +++ b/epan/dissectors/packet-iapp.c @@ -185,7 +185,7 @@ static void dissect_caps(proto_item *pitem, tvbuff_t *tvb, int offset) for (bit = 7; bit >= 0; bit--) { thisbit = 1 << bit; - strval = match_strval(thisbit, iapp_cap_vals); + strval = try_val_to_str(thisbit, iapp_cap_vals); if (strval) { other_decode_bitfield_value(bitval, val, thisbit, 8); @@ -300,7 +300,7 @@ append_pduval_str(proto_item *ti, int type, int len, tvbuff_t *tvb, int offset, for (mask = 0x80; mask; mask >>= 1) if (val & mask) { - strval = match_strval(mask, iapp_cap_vals); + strval = try_val_to_str(mask, iapp_cap_vals); if (strval) { if (!first) |