diff options
Diffstat (limited to 'epan/dissectors/packet-klm.c')
-rw-r--r-- | epan/dissectors/packet-klm.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/epan/dissectors/packet-klm.c b/epan/dissectors/packet-klm.c index 30a861dc5e..5538cd67dd 100644 --- a/epan/dissectors/packet-klm.c +++ b/epan/dissectors/packet-klm.c @@ -112,26 +112,21 @@ dissect_lock(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, int offset, rp } static int -dissect_klm_unlock_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, void* data) +dissect_klm_unlock_call(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { - offset = dissect_lock(tvb, pinfo, tree, offset, (rpc_call_info_value*)data); - - return offset; + return dissect_lock(tvb, pinfo, tree, 0, (rpc_call_info_value*)data); } static int -dissect_klm_stat_reply(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) +dissect_klm_stat_reply(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { - - offset = dissect_rpc_uint32(tvb, tree, - hf_klm_stats, offset); - - return offset; + return dissect_rpc_uint32(tvb, tree, hf_klm_stats, 0); } static int -dissect_klm_lock_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, void* data) +dissect_klm_lock_call(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { + int offset = 0; offset = dissect_rpc_bool( tvb, tree, hf_klm_block, offset); @@ -144,9 +139,10 @@ dissect_klm_lock_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree } static int -dissect_klm_test_reply(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) +dissect_klm_test_reply(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { gint32 stats; + int offset = 0; stats = tvb_get_ntohl(tvb, offset); @@ -161,8 +157,9 @@ dissect_klm_test_reply(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_ } static int -dissect_klm_test_call(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, void* data) +dissect_klm_test_call(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { + int offset = 0; offset = dissect_rpc_bool( tvb, tree, hf_klm_exclusive, offset); |