aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ppi-antenna.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-11-18 22:55:18 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-11-18 22:55:18 +0000
commitd54c4a71a7e27e33279f79a36b3144159f7b2c9a (patch)
tree8300d0dfce7a86eda486e3ce8420df57cbc41f9b /epan/dissectors/packet-ppi-antenna.c
parent6202a35e6a33f951e965555fe331526945d02df4 (diff)
Fix compilation errors: Use FT_DOUBLE and proto_tree_add_double for gdoubles.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34962 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ppi-antenna.c')
-rw-r--r--epan/dissectors/packet-ppi-antenna.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ppi-antenna.c b/epan/dissectors/packet-ppi-antenna.c
index 0e476f66d3..8b5b35a063 100644
--- a/epan/dissectors/packet-ppi-antenna.c
+++ b/epan/dissectors/packet-ppi-antenna.c
@@ -255,15 +255,15 @@ proto_register_ppi_antenna(void) {
"Gain of antenna (dBi)", HFILL } },
{ &hf_ppi_antenna_horizbw,
{ "HorizBw", "ppi_antenna.horizbw",
- FT_FLOAT, BASE_NONE, NULL, 0x0,
+ FT_DOUBLE, BASE_NONE, NULL, 0x0,
"Horizontal beamwidth", HFILL } },
{ &hf_ppi_antenna_vertbw,
{ "VertBw", "ppi_antenna.vertbw",
- FT_FLOAT, BASE_NONE, NULL, 0x0,
+ FT_DOUBLE, BASE_NONE, NULL, 0x0,
"Vertical beamwidth", HFILL } },
{ &hf_ppi_antenna_pgain,
{ "Precision Gain (dBi)", "ppi_antenna.pgain",
- FT_FLOAT, BASE_NONE, NULL, 0x0,
+ FT_DOUBLE, BASE_NONE, NULL, 0x0,
"Precision Gain", HFILL } },
{ &hf_ppi_antenna_beamid,
{ "BeamID", "ppi_antenna.beamid",
@@ -431,7 +431,7 @@ void dissect_ppi_antenna(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
t_hbw = tvb_get_letohl(tvb, offset);
horizbw = fixed3_6_to_gdouble(t_hbw);
if (tree) {
- proto_tree_add_float(ppi_antenna_tree, hf_ppi_antenna_horizbw, tvb, offset, 4, horizbw);
+ proto_tree_add_double(ppi_antenna_tree, hf_ppi_antenna_horizbw, tvb, offset, 4, horizbw);
}
offset+=4;
length_remaining-=4;
@@ -442,7 +442,7 @@ void dissect_ppi_antenna(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
t_vbw = tvb_get_letohl(tvb, offset);
vertbw = fixed3_6_to_gdouble(t_vbw);
if (tree) {
- proto_tree_add_float(ppi_antenna_tree, hf_ppi_antenna_vertbw, tvb, offset, 4, vertbw);
+ proto_tree_add_double(ppi_antenna_tree, hf_ppi_antenna_vertbw, tvb, offset, 4, vertbw);
}
offset+=4;
length_remaining-=4;
@@ -453,7 +453,7 @@ void dissect_ppi_antenna(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
t_pgain = tvb_get_letohl(tvb, offset);
pgain = fixed3_6_to_gdouble(t_pgain);
if (tree) {
- proto_tree_add_float(ppi_antenna_tree, hf_ppi_antenna_pgain, tvb, offset, 4, pgain);
+ proto_tree_add_double(ppi_antenna_tree, hf_ppi_antenna_pgain, tvb, offset, 4, pgain);
}
offset+=4;
length_remaining-=4;