From 677027a180e8ed6cf0feb6af2ef3157ae64a8aff Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Fri, 6 Nov 2015 16:40:46 +0100 Subject: [PATCH] DCERPC: fix compilation with OSX buildbots and Ubuntu 15.10 Change-Id: I032874d0f023d99478be03c192cb529055a6c53e Reviewed-on: https://code.wireshark.org/review/11601 Petri-Dish: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin --- epan/dissectors/packet-dcerpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c index 24960acb8b..76a577ee1e 100644 --- a/epan/dissectors/packet-dcerpc.c +++ b/epan/dissectors/packet-dcerpc.c @@ -3482,8 +3482,8 @@ dissect_verification_trailer_impl(packet_info *pinfo, tvbuff_t *tvb, int stub_of proto_tree_add_item(tree, hf_dcerpc_sec_vt_signature, tvb, offset, sizeof(TRAILER_SIGNATURE), ENC_NA); - offset += sizeof(TRAILER_SIGNATURE); - remaining -= sizeof(TRAILER_SIGNATURE); + offset += (int)sizeof(TRAILER_SIGNATURE); + remaining -= (int)sizeof(TRAILER_SIGNATURE); while (remaining >= 4) { sec_vt_command cmd; @@ -3564,7 +3564,7 @@ static int dissect_verification_trailer(packet_info *pinfo, tvbuff_t *tvb, int stub_offset, proto_tree *parent_tree, int *signature_offset) { - int ret = -1; + volatile int ret = -1; TRY { /* * Even if we found a signature we can't be sure to have a