diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-07-29 16:07:00 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-07-29 16:07:00 +0000 |
commit | cccda1f9813e23fb455a70bc33d1258d5cf11170 (patch) | |
tree | 679b6824e52658ba926daa9e01ce2a57aacbcf55 /epan/dissectors/packet-ppi-geolocation-common.c | |
parent | 12592dab19f5433692f71ab42230780e2590bae4 (diff) |
Remove unneeded #includes and do other minor cleanup.
svn path=/trunk/; revision=38259
Diffstat (limited to 'epan/dissectors/packet-ppi-geolocation-common.c')
-rw-r--r-- | epan/dissectors/packet-ppi-geolocation-common.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ppi-geolocation-common.c b/epan/dissectors/packet-ppi-geolocation-common.c index 094c8fc5c9..cd4d8784be 100644 --- a/epan/dissectors/packet-ppi-geolocation-common.c +++ b/epan/dissectors/packet-ppi-geolocation-common.c @@ -23,13 +23,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include <glib.h> #include "packet-ppi-geolocation-common.h" /* * input: a unsigned 32-bit (native endian) value between 0 and 3600000000 (inclusive) * output: a signed floating point value betwen -180.0000000 and + 180.0000000, inclusive) */ -gdouble fixed3_7_to_gdouble(guint32 in) { +gdouble ppi_fixed3_7_to_gdouble(guint32 in) { gint32 remapped_in = in - (180 * 10000000); gdouble ret = (gdouble) ((gdouble) remapped_in / 10000000); return ret; @@ -39,7 +40,7 @@ gdouble fixed3_7_to_gdouble(guint32 in) { * output: a positive floating point value between 000.0000000 and 999.9999999 */ -gdouble fixed3_6_to_gdouble(guint32 in) { +gdouble ppi_fixed3_6_to_gdouble(guint32 in) { gdouble ret = (gdouble) in / 1000000.0; return ret; @@ -48,13 +49,13 @@ gdouble fixed3_6_to_gdouble(guint32 in) { * input: a native 32 bit unsigned value between 0 and 3600000000 * output: a signed floating point value between -180000.0000 and +180000.0000 */ -gdouble fixed6_4_to_gdouble(guint32 in) { +gdouble ppi_fixed6_4_to_gdouble(guint32 in) { gint32 remapped_in = in - (180000 * 10000); gdouble ret = (gdouble) ((gdouble) remapped_in / 10000); return ret; } -gdouble ns_counter_to_gdouble(guint32 in) { +gdouble ppi_ns_counter_to_gdouble(guint32 in) { gdouble ret; ret = (gdouble) in / 1000000000; return ret; |