summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/subsurfacestartup.c5
-rw-r--r--core/units.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c
index 23e17c7a7..a04be7290 100644
--- a/core/subsurfacestartup.c
+++ b/core/subsurfacestartup.c
@@ -110,11 +110,6 @@ int quit, force_root, ignore_bt;
char *testqml = NULL;
#endif
-const struct units *get_units()
-{
- return &prefs.units;
-}
-
/*
* track whether we switched to importing dives
*/
diff --git a/core/units.c b/core/units.c
index df6ca5f07..59c09e4dc 100644
--- a/core/units.c
+++ b/core/units.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "units.h"
#include "gettext.h"
+#include "pref.h"
int get_pressure_units(int mb, const char **units)
{
@@ -168,3 +169,8 @@ double get_weight_units(unsigned int grams, int *frac, const char **units)
*units = unit;
return value;
}
+
+const struct units *get_units()
+{
+ return &prefs.units;
+}