core: change type of unit_system to enum

unit_system is an enum, but was declared as short, correct declaration.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-07-28 21:18:54 +02:00 committed by Dirk Hohndel
parent 90c7be0772
commit 470b41e595

View file

@ -59,6 +59,12 @@ typedef struct {
int download_mode;
} dive_computer_prefs_t;
enum unit_system_values {
METRIC,
IMPERIAL,
PERSONALIZE
};
// ********** PREFERENCES **********
// This struct is kept global for all of ssrf
// most of the fields are loaded from git as
@ -195,20 +201,14 @@ struct preferences {
bool zoomed_plot;
// ********** Units **********
bool coordinates_traditional;
short unit_system;
struct units units;
bool coordinates_traditional;
enum unit_system_values unit_system;
struct units units;
// ********** UpdateManager **********
update_manager_prefs_t update_manager;
};
enum unit_system_values {
METRIC,
IMPERIAL,
PERSONALIZE
};
enum def_file_behavior {
UNDEFINED_DEFAULT_FILE,
LOCAL_DEFAULT_FILE,