diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-05 09:59:52 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-05 10:34:02 -0800 |
commit | 5e5e3460acf9d29b03aff71228aff01e31a3bf45 (patch) | |
tree | 07629133d0d9ea1948692690929582ae9029e12e /uemis-downloader.c | |
parent | 708df33539ef3b6d3cfde435df93fd4475cdde75 (diff) | |
download | subsurface-5e5e3460acf9d29b03aff71228aff01e31a3bf45.tar.gz |
Turn latitude and longitude into integer micro-degree values
This actually makes us internally use 'micro-degrees' for latitude and
longitude, and we never turn them into floating point either at parse
time or save time.
That said, the Uemis downloader internally does still use atof() when
converting things, which is likely a bug (locale issues and all that),
but I'll ask Dirk to check it out.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 449ae55ee..8f4ceaf2e 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -553,7 +553,7 @@ static void parse_divespot(char *buf) uemis_set_divelocation(divespot, strdup(locationstring), latitude, longitude); } -static void track_divespot(char *val, int diveid, char **location, double *latitude, double *longitude) +static void track_divespot(char *val, int diveid, char **location, degrees_t *latitude, degrees_t *longitude) { int id = atoi(val); if (id >= 0 && id > nr_divespots) |