aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-diameter.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-07-16 08:08:17 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-07-16 08:08:17 +0000
commitede8dc7f5f44876e4a86481ffde525c0988a17c8 (patch)
tree1ae43e83548e10ef1492cb8df64c0d14ac7d039d /epan/dissectors/packet-diameter.c
parente1e2226f92a023b8911e869f63f55f364faafcb4 (diff)
The second argument to g_ptr_array_add() is the pointer to add, not a
pointer to that pointer - unlike g_array_append_vals, which takes a pointer to an array of values and a count of the number of values in the array. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25753 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-diameter.c')
-rw-r--r--epan/dissectors/packet-diameter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c
index 12614103a1..3350cbf662 100644
--- a/epan/dissectors/packet-diameter.c
+++ b/epan/dissectors/packet-diameter.c
@@ -844,7 +844,7 @@ basic_avp_reginfo(diam_avp_t* a, const char* name, enum ftenum ft,
hf->hfinfo.abbrev = alnumerize(g_strdup_printf("diameter.%s",name));
g_array_append_vals(build_dict.hf,hf,1);
- g_ptr_array_add(build_dict.ett,&ettp);
+ g_ptr_array_add(build_dict.ett,ettp);
}
static diam_avp_t*
@@ -915,7 +915,7 @@ RFC3588
alnumerize(ep_strdup_printf("diameter.%s",name)),
"", FT_BYTES, BASE_NONE, NULL, 0);
- g_ptr_array_add(build_dict.ett,&ettp);
+ g_ptr_array_add(build_dict.ett,ettp);
return a;
}
@@ -941,7 +941,7 @@ build_proto_avp(const avp_type_t* type _U_, guint32 code,
t->handle = NULL;
t->reassemble_mode = 0;
- g_ptr_array_add(build_dict.ett,&ettp);
+ g_ptr_array_add(build_dict.ett,ettp);
return a;
}
@@ -1396,7 +1396,7 @@ proto_register_diameter(void)
ett_length = array_length(ett_base);
for (i = 0; i < ett_length; i++)
{
- g_ptr_array_add(build_dict.ett, &ett_base[i]);
+ g_ptr_array_add(build_dict.ett, ett_base[i]);
}
proto_diameter = proto_register_protocol ("Diameter Protocol", "DIAMETER", "diameter");