summaryrefslogtreecommitdiff
path: root/plugins/profinet/packet-pn.h
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2017-06-07 07:06:50 +0200
committerAnders Broman <a.broman58@gmail.com>2017-06-07 08:01:18 +0000
commit4291968f2a3f94595bfb312f4b99396b7aa9bd0b (patch)
tree42c25f6c1e607ba1cb566bb4f5fec80d1d0baf6c /plugins/profinet/packet-pn.h
parent9cfdece0c1e6ff16c1152f95cb3d4a2554728ca6 (diff)
downloadwireshark-4291968f2a3f94595bfb312f4b99396b7aa9bd0b.tar.gz
profinet: use proto_tree_add_item_ret_(u)int directly
Profinet defined functions to add 32bit integers to the tree and get their value. This is equivalent to proto_tree_add_item_ret_(u)int. Call those functions directly and remove the now obsolete Profinet functions. In some cases, the returned 32bit value is discarded. Use proto_tree_add_item then. Change-Id: I7744fab2f27b8ae8e681a36e4e96eb2f8be87bd6 Reviewed-on: https://code.wireshark.org/review/21989 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins/profinet/packet-pn.h')
-rw-r--r--plugins/profinet/packet-pn.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/profinet/packet-pn.h b/plugins/profinet/packet-pn.h
index b13f814296..77cd635348 100644
--- a/plugins/profinet/packet-pn.h
+++ b/plugins/profinet/packet-pn.h
@@ -125,15 +125,9 @@ extern int dissect_pn_uint16_ret_item(tvbuff_t *tvb, gint offset, packet_info *p
extern int dissect_pn_uint16(tvbuff_t *tvb, gint offset, packet_info *pinfo,
proto_tree *tree, int hfindex, guint16 *pdata);
-extern int dissect_pn_uint32(tvbuff_t *tvb, gint offset, packet_info *pinfo,
- proto_tree *tree, int hfindex, guint32 *pdata);
-
extern int dissect_pn_int16(tvbuff_t *tvb, gint offset, packet_info *pinfo,
proto_tree *tree, int hfindex, gint16 *pdata);
-extern int dissect_pn_int32(tvbuff_t *tvb, gint offset, packet_info *pinfo,
- proto_tree *tree, int hfindex, gint32 *pdata);
-
extern int dissect_pn_oid(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, int hfindex, guint32 *pdata);