diff options
Diffstat (limited to 'epan/dissectors/packet-ypbind.c')
-rw-r--r-- | epan/dissectors/packet-ypbind.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-ypbind.c b/epan/dissectors/packet-ypbind.c index 8bc5bbfbc6..16baa0b993 100644 --- a/epan/dissectors/packet-ypbind.c +++ b/epan/dissectors/packet-ypbind.c @@ -46,13 +46,10 @@ static gint ett_ypbind = -1; static int -dissect_ypbind_domain_v2_request(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) +dissect_ypbind_domain_v2_request(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { /* domain */ - offset = dissect_rpc_string(tvb, tree, - hf_ypbind_domain, offset, NULL); - - return offset; + return dissect_rpc_string(tvb, tree, hf_ypbind_domain, 0, NULL); } #define YPBIND_RESP_TYPE_SUCC_VAL 1 @@ -76,9 +73,10 @@ static const value_string error_vals[] = { #endif static int -dissect_ypbind_domain_v2_reply(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) +dissect_ypbind_domain_v2_reply(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { guint32 type; + int offset = 0; /* response type */ type=tvb_get_ntohl(tvb, offset); @@ -107,8 +105,10 @@ dissect_ypbind_domain_v2_reply(tvbuff_t *tvb, int offset, packet_info *pinfo _U_ } static int -dissect_ypbind_setdomain_v2_request(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) +dissect_ypbind_setdomain_v2_request(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { + int offset = 0; + /* domain */ offset = dissect_rpc_string(tvb, tree, hf_ypbind_domain, offset, NULL); |