summaryrefslogtreecommitdiffstats
path: root/prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'prefs.c')
-rw-r--r--prefs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/prefs.c b/prefs.c
index 04db63044..7c833116f 100644
--- a/prefs.c
+++ b/prefs.c
@@ -2,6 +2,11 @@
#include "dive.h"
+struct units *get_units()
+{
+ return &prefs.units;
+}
+
static void set_bool_conf(char *name, gboolean value, gboolean def)
{
if (value == def) {