diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-03-18 20:44:36 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-03-18 20:44:36 +0000 |
commit | 84241f46ada962c7b4b9b3cf0f1be134ee99b00c (patch) | |
tree | 3108e864be7f7c06df5331f7431cd67f2aee39be /plugins | |
parent | 81700ec3e08712eef97596828ea054c78af75a41 (diff) | |
download | wireshark-84241f46ada962c7b4b9b3cf0f1be134ee99b00c.tar.gz |
From beroset:
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416
svn path=/trunk/; revision=48399
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimax/packet-wmx.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c index 3988f3e762..76c37b24d0 100644 --- a/plugins/wimax/packet-wmx.c +++ b/plugins/wimax/packet-wmx.c @@ -617,7 +617,7 @@ static const gchar tlv_val_5byte[] = "TLV value: %s (0x%08x...)"; /* return: */ /* pointer to a proto_tree */ /*************************************************************/ -proto_tree *add_tlv_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length _U_, gboolean little_endian) +proto_tree *add_tlv_subtree(tlv_info_t *self, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length _U_, gboolean little_endian) { /* Declare local variables */ proto_tree *tlv_tree; @@ -630,14 +630,14 @@ proto_tree *add_tlv_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hf const gchar *hex_fmt; /* Retrieve the necessary TLV information */ - tlv_val_offset = get_tlv_value_offset(this); + tlv_val_offset = get_tlv_value_offset(self); start_of_tlv = start - tlv_val_offset; - tlv_value_length = get_tlv_length(this); - size_of_tlv_length_field = get_tlv_size_of_length(this); - tlv_type = get_tlv_type(this); + tlv_value_length = get_tlv_length(self); + size_of_tlv_length_field = get_tlv_size_of_length(self); + tlv_type = get_tlv_type(self); /* Make sure we're dealing with a valid TLV here */ - if (get_tlv_type(this) < 0) + if (get_tlv_type(self) < 0) return tree; /* display the TLV name and display the value in hex. Highlight type, length, and value. */ @@ -711,7 +711,7 @@ proto_tree *add_tlv_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hf /* return: */ /* pointer to a proto_tree */ /*************************************************************/ -proto_tree *add_protocol_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *format, ...) +proto_tree *add_protocol_subtree(tlv_info_t *self, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *format, ...) { /* Declare local variables */ proto_tree *tlv_tree; @@ -726,15 +726,15 @@ proto_tree *add_protocol_subtree(tlv_info_t *this, gint idx, proto_tree *tree, i const gchar *hex_fmt; /* Make sure we're dealing with a valid TLV here */ - if (get_tlv_type(this) < 0) + if (get_tlv_type(self) < 0) return tree; /* Retrieve the necessary TLV information */ - tlv_val_offset = get_tlv_value_offset(this); + tlv_val_offset = get_tlv_value_offset(self); start_of_tlv = start - tlv_val_offset; - tlv_value_length = get_tlv_length(this); - size_of_tlv_length_field = get_tlv_size_of_length(this); - tlv_type = get_tlv_type(this); + tlv_value_length = get_tlv_length(self); + size_of_tlv_length_field = get_tlv_size_of_length(self); + tlv_type = get_tlv_type(self); /* display the TLV name and display the value in hex. Highlight type, length, and value. */ va_start(ap, format); |