summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-09-26 21:21:54 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-09-26 21:21:54 +0000
commit1662d89793a5dae3d8a23ada2759947909a4fe31 (patch)
tree08b5445e1f07aabf2499c1e138371201a760be57
parent408ba7badeb3740fb478b3e80bb8aba3dec62a27 (diff)
downloadwireshark-1662d89793a5dae3d8a23ada2759947909a4fe31.tar.gz
Fix:
packet-openflow.c:577:31: error: "/*" within comment packet-openflow.c:655:24: error: "/*" within comment cc1: warnings being treated as errors packet-openflow.c: In function 'dissect_openflow_features_reply_v1_3': packet-openflow.c:671: warning: unused parameter 'pinfo' packet-openflow.c:671: warning: unused parameter 'length' packet-openflow.c: In function 'dissect_openflow_multipart_request_v1_3': packet-openflow.c:809: warning: unused parameter 'pinfo' packet-openflow.c:809: warning: unused parameter 'length' packet-openflow.c: At top level: packet-openflow.c:1033: warning: return type defaults to 'int' packet-openflow.c:1119: warning: return type defaults to 'int' svn path=/trunk/; revision=52226
-rw-r--r--epan/dissectors/packet-openflow.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-openflow.c b/epan/dissectors/packet-openflow.c
index 726a879729..1ac29efe4b 100644
--- a/epan/dissectors/packet-openflow.c
+++ b/epan/dissectors/packet-openflow.c
@@ -574,7 +574,7 @@ uint8_t pad[3]; * Align to 64-bits. *
uint32_t capabilities; * Bitmap of support "ofp_capabilities". *
uint32_t actions; * Bitmap of supported "ofp_action_type"s. *
* Port info.*
-struct ofp_phy_port ports[0]; /* Port definitions. The number of ports
+struct ofp_phy_port ports[0]; / Port definitions. The number of ports
is inferred from the length field in
the header.
*/
@@ -652,7 +652,7 @@ dissect_openflow_features_reply_v1_0(tvbuff_t *tvb, packet_info *pinfo, proto_tr
/* Switch features. /
struct ofp_switch_features {
struct ofp_header header;
- uint64_t datapath_id; /* Datapath unique ID. The lower 48-bits are for
+ uint64_t datapath_id; / Datapath unique ID. The lower 48-bits are for
a MAC address, while the upper 16-bits are
implementer-defined. /
uint32_t n_buffers; / Max packets buffered at once. /
@@ -668,7 +668,7 @@ OFP_ASSERT(sizeof(struct ofp_switch_features) == 32);
static void
-dissect_openflow_features_reply_v1_3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length)
+dissect_openflow_features_reply_v1_3(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
proto_item *ti;
proto_tree *path_id_tree, *cap_tree;
@@ -806,7 +806,7 @@ uint8_t body[0]; / Body of the request. /
};
*/
static void
-dissect_openflow_multipart_request_v1_3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length)
+dissect_openflow_multipart_request_v1_3(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, guint16 length _U_)
{
/* type */
@@ -1029,6 +1029,7 @@ dissect_openflow_flow_mod(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, i
#endif
}
+static int
dissect_openflow_v_1_0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
proto_item *ti;
@@ -1115,6 +1116,7 @@ dissect_openflow_v_1_0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
}
+static int
dissect_openflow_v_1_3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
proto_item *ti;