summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9afaa3d03..16d44d326 100644
--- a/main.c
+++ b/main.c
@@ -40,6 +40,11 @@ struct preferences default_prefs = {
#endif
};
+struct units *get_units()
+{
+ return &prefs.units;
+}
+
/* random helper functions, used here or elsewhere */
static int sortfn(const void *_a, const void *_b)
{