aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-09 03:31:27 +0000
committerEvan Huus <eapache@gmail.com>2013-03-09 03:31:27 +0000
commite5d5bb67bc4265ab96bff535d0eb8ca8820e062f (patch)
tree8b46ee38beac9c1490284438a556747b97fa90dc
parent23c06af6b3276ada4162eda8de5dac950c6bcdc0 (diff)
Put items in the tree we just created, mark an unused param as _U_.
Fixes GCC build. svn path=/trunk/; revision=48209
-rw-r--r--epan/dissectors/packet-rtps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rtps.c b/epan/dissectors/packet-rtps.c
index f15622c30a..afb6f3f466 100644
--- a/epan/dissectors/packet-rtps.c
+++ b/epan/dissectors/packet-rtps.c
@@ -1236,7 +1236,7 @@ gint rtps_util_add_seq_string(proto_tree *tree, /* Can NOT be NULL */
* Returns the new updated offset
*/
gint rtps_util_add_seq_ulong(proto_tree *tree, tvbuff_t * tvb, gint offset, int hf_item,
- gboolean little_endian, int param_length, const char *label) {
+ gboolean little_endian, int param_length _U_, const char *label) {
guint32 num_elem;
guint32 i;
proto_tree *string_tree;
@@ -1250,7 +1250,7 @@ gint rtps_util_add_seq_ulong(proto_tree *tree, tvbuff_t * tvb, gint offset, int
string_tree = proto_item_add_subtree(ti, ett_rtps_seq_ulong);
for (i = 0; i < num_elem; ++i) {
- proto_tree_add_item(tree, hf_item, tvb, offset, 4, little_endian ? ENC_LITTLE_ENDIAN : ENC_BIG_ENDIAN);
+ proto_tree_add_item(string_tree, hf_item, tvb, offset, 4, little_endian ? ENC_LITTLE_ENDIAN : ENC_BIG_ENDIAN);
offset += 4;
}