aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-chdlc.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-23 21:43:00 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-23 21:43:00 +0000
commitebb405832fb946ac7ef1636d2ed786c084512f7d (patch)
treebb233266270a35f62b4bfe5d5ef631a66a06fdf2 /epan/dissectors/packet-chdlc.c
parent6173bfa3ef973e107265a5e491eb2c1c4da2ce36 (diff)
Renamed a local variable to avoid name collisions.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25564 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-chdlc.c')
-rw-r--r--epan/dissectors/packet-chdlc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-chdlc.c b/epan/dissectors/packet-chdlc.c
index d6203ab71b..635bbe3531 100644
--- a/epan/dissectors/packet-chdlc.c
+++ b/epan/dissectors/packet-chdlc.c
@@ -123,7 +123,7 @@ capture_chdlc( const guchar *pd, int offset, int len, packet_counts *ld ) {
}
void
-chdlctype(guint16 chdlctype, tvbuff_t *tvb, int offset_after_chdlctype,
+chdlctype(guint16 chdlc_type, tvbuff_t *tvb, int offset_after_chdlctype,
packet_info *pinfo, proto_tree *tree, proto_tree *fh_tree,
int chdlctype_id)
{
@@ -132,11 +132,11 @@ chdlctype(guint16 chdlctype, tvbuff_t *tvb, int offset_after_chdlctype,
if (tree) {
proto_tree_add_uint(fh_tree, chdlctype_id, tvb,
- offset_after_chdlctype - 2, 2, chdlctype);
+ offset_after_chdlctype - 2, 2, chdlc_type);
}
padbyte = tvb_get_guint8(tvb, offset_after_chdlctype);
- if (chdlctype == CHDLCTYPE_OSI &&
+ if (chdlc_type == CHDLCTYPE_OSI &&
!( padbyte == NLPID_ISO8473_CLNP || /* older Juniper SW does not send a padbyte */
padbyte == NLPID_ISO9542_ESIS ||
padbyte == NLPID_ISO10589_ISIS)) {
@@ -149,9 +149,9 @@ chdlctype(guint16 chdlctype, tvbuff_t *tvb, int offset_after_chdlctype,
}
/* do lookup with the subdissector table */
- if (!dissector_try_port(subdissector_table, chdlctype, next_tvb, pinfo, tree)) {
+ if (!dissector_try_port(subdissector_table, chdlc_type, next_tvb, pinfo, tree)) {
if (check_col(pinfo->cinfo, COL_PROTOCOL))
- col_add_fstr(pinfo->cinfo, COL_PROTOCOL, "0x%04x", chdlctype);
+ col_add_fstr(pinfo->cinfo, COL_PROTOCOL, "0x%04x", chdlc_type);
call_dissector(data_handle,next_tvb, pinfo, tree);
}
}