summaryrefslogtreecommitdiffstats
path: root/divesite.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-14 11:35:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-14 11:52:17 -0700
commit8c0d0de2e62356e1bbdad97843d185a37973c5c7 (patch)
tree0179eee9ba82a843f676551e61b9886930c9ceab /divesite.c
parente82f8ea565a68aa1fa980cb12c1f136b1d4a57f9 (diff)
downloadsubsurface-8c0d0de2e62356e1bbdad97843d185a37973c5c7.tar.gz
Location completer: give distance if known
If both the displayed dive and the dive site which is shown as a potential completion have a GPS fix, indicate the distance. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.c')
-rw-r--r--divesite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/divesite.c b/divesite.c
index 998fe23bf..56479508b 100644
--- a/divesite.c
+++ b/divesite.c
@@ -37,7 +37,7 @@ uint32_t get_dive_site_uuid_by_gps(degrees_t latitude, degrees_t longitude, stru
}
// Calculate the distance in meters between two coordinates.
-static unsigned int get_distance(degrees_t lat1, degrees_t lon1, degrees_t lat2, degrees_t lon2)
+unsigned int get_distance(degrees_t lat1, degrees_t lon1, degrees_t lat2, degrees_t lon2)
{
double lat1_r = udeg_to_radians(lat1.udeg);
double lat2_r = udeg_to_radians(lat2.udeg);