From 2cddd61a48156feeb4a2a44ed311a6a9eb2f26c7 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Mon, 2 Sep 2013 21:45:09 +0000 Subject: [PATCH] Fix packet-openflow.c:318: warning: return type defaults to 'int' packet-openflow.c: In function 'dissect_openflow_ofp_match_v_1_0': packet-openflow.c:350: warning: control reaches end of non-void function svn path=/trunk/; revision=51650 --- epan/dissectors/packet-openflow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-openflow.c b/epan/dissectors/packet-openflow.c index 607999bd93..c95a05f32b 100644 --- a/epan/dissectors/packet-openflow.c +++ b/epan/dissectors/packet-openflow.c @@ -313,7 +313,7 @@ static const value_string openflow_type_values[] = { #define OFPAT_SET_TP_DST 9 /* TCP/UDP destination port. */ #define OFPAT_VENDOR 0xffff - +static int dissect_openflow_ofp_match_v_1_0(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset) { @@ -347,6 +347,7 @@ dissect_openflow_ofp_match_v_1_0(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tr /* uint16_t tp_dst; TCP/UDP destination port. */ offset +=20; + return offset; }