summaryrefslogtreecommitdiff
path: root/gpsdclient.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-02-22 15:44:05 -0800
committerGary E. Miller <gem@rellim.com>2019-02-22 15:44:05 -0800
commitf1be39110e39e5c8d095200231a75aea3afecd57 (patch)
tree77d43f78b8235d2a9e085d80c3a2631d12505d03 /gpsdclient.h
parent1db29a3fa49eca5929ba03346eac7cd49f58e86d (diff)
downloadgpsd-f1be39110e39e5c8d095200231a75aea3afecd57.tar.gz
deg_to_s() and calls to it: Allow negative degrees, use fabs().
Every call to deg_to_s() was preceded by a fabs(deg). So move the fabs() into deg_to_s().
Diffstat (limited to 'gpsdclient.h')
-rw-r--r--gpsdclient.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsdclient.h b/gpsdclient.h
index d988b751..e4e5dae2 100644
--- a/gpsdclient.h
+++ b/gpsdclient.h
@@ -34,7 +34,8 @@ enum unit gpsd_units(void);
enum deg_str_type { deg_dd, deg_ddmm, deg_ddmmss };
float true2magnetic(double, double, double);
-extern char *deg_to_str( enum deg_str_type type, double f);
+/* Warning: not thread safe */
+extern char *deg_to_str(enum deg_str_type type, double f);
extern void gpsd_source_spec(const char *fromstring,
struct fixsource_t *source);