From f1fe4869d96faed05b73addaf29d312acebc1419 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 30 May 2013 06:00:26 +0900 Subject: Stop building prefs.c The only tiny function in there that was still needed seems to fit nicely into main.c Signed-off-by: Dirk Hohndel --- Makefile | 1 - main.c | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c9373d19..46d5d0096 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,6 @@ SOURCES = \ info.c \ main.c \ parse-xml.c \ - prefs.c \ profile.c \ save-xml.c \ sha1.c \ 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) { -- cgit v1.2.3-70-g09d2