diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-30 06:00:26 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-30 06:00:26 +0900 |
commit | f1fe4869d96faed05b73addaf29d312acebc1419 (patch) | |
tree | b3a84e20415db4355a3845bb247f08dbabe3863c | |
parent | 85e3a4ad2902c5aabb5944f94961d0e1610bad26 (diff) | |
download | subsurface-f1fe4869d96faed05b73addaf29d312acebc1419.tar.gz |
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 <dirk@hohndel.org>
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | main.c | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -57,7 +57,6 @@ SOURCES = \ info.c \ main.c \ parse-xml.c \ - prefs.c \ profile.c \ save-xml.c \ sha1.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) { |