aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-openflow.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-07-11 21:54:23 +0000
committerGuy Harris <guy@alum.mit.edu>2013-07-11 21:54:23 +0000
commit0f003babb37de7905b85c394ec7150b91156a267 (patch)
tree6c4abf20fe212f363554fb747c4b5970ea3d52ad /epan/dissectors/packet-openflow.c
parentb125950d9a992c90a68f0e41b77a29ba2f0ea0b9 (diff)
Fix cut-and-pasteo found by a compiler warning.
Mark an unused parameter as unused. svn path=/trunk/; revision=50515
Diffstat (limited to 'epan/dissectors/packet-openflow.c')
-rw-r--r--epan/dissectors/packet-openflow.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-openflow.c b/epan/dissectors/packet-openflow.c
index fa255a2f11..27c31ec46f 100644
--- a/epan/dissectors/packet-openflow.c
+++ b/epan/dissectors/packet-openflow.c
@@ -270,7 +270,7 @@ static const value_string openflow_type_values[] = {
#define OFPPF_PAUSE_ASYM 1<<11 /* Asymmetric pause. */
static void
-dissect_openflow_phy_port(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
+dissect_openflow_phy_port(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset)
{
proto_item *ti;
proto_tree *port_cnf_tree, *port_state_tree, *port_cf_tree;
@@ -307,17 +307,17 @@ dissect_openflow_phy_port(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, i
port_state_tree = proto_item_add_subtree(ti, ett_openflow_port_state);
/* No physical link present. */
- proto_tree_add_item(port_cnf_tree, hf_openflow_link_down, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(port_state_tree, hf_openflow_link_down, tvb, offset, 4, ENC_BIG_ENDIAN);
/* Not learning or relaying frames. */
- proto_tree_add_item(port_cnf_tree, hf_openflow_stp_listen, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(port_state_tree, hf_openflow_stp_listen, tvb, offset, 4, ENC_BIG_ENDIAN);
/* Learning but not relaying frames. */
- proto_tree_add_item(port_cnf_tree, hf_openflow_stp_learn, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(port_state_tree, hf_openflow_stp_learn, tvb, offset, 4, ENC_BIG_ENDIAN);
/* Learning and relaying frames. */
- proto_tree_add_item(port_cnf_tree, hf_openflow_stp_forward, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(port_state_tree, hf_openflow_stp_forward, tvb, offset, 4, ENC_BIG_ENDIAN);
/* Not part of spanning tree. */
- proto_tree_add_item(port_cnf_tree, hf_openflow_stp_block, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(port_state_tree, hf_openflow_stp_block, tvb, offset, 4, ENC_BIG_ENDIAN);
/* Bit mask for OFPPS_STP_* values. */
- proto_tree_add_item(port_cnf_tree, hf_openflow_stp_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(port_state_tree, hf_openflow_stp_mask, tvb, offset, 4, ENC_BIG_ENDIAN);
offset+=4;