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-ncp.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-ncp.c')
-rw-r--r-- | epan/dissectors/packet-ncp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ncp.c b/epan/dissectors/packet-ncp.c index d1b4240ca3..9f77a3fc8d 100644 --- a/epan/dissectors/packet-ncp.c +++ b/epan/dissectors/packet-ncp.c @@ -349,9 +349,9 @@ dissect_ncp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, commhdr += 4; } /* Check to see if this is a valid offset, otherwise increment for packet signature */ - if (match_strval(tvb_get_ntohs(tvb, commhdr), ncp_type_vals)==NULL) { + if (try_val_to_str(tvb_get_ntohs(tvb, commhdr), ncp_type_vals)==NULL) { /* Check to see if we have a valid type after packet signature length */ - if (match_strval(tvb_get_ntohs(tvb, commhdr+8), ncp_type_vals)!=NULL) { + if (try_val_to_str(tvb_get_ntohs(tvb, commhdr+8), ncp_type_vals)!=NULL) { proto_tree_add_item(ncp_tree, hf_ncp_ip_packetsig, tvb, commhdr, 8, ENC_NA); commhdr += 8; } |