diff --git a/common/include/common/option.h b/common/include/common/option.h index 738e3410..8f3dcdf9 100644 --- a/common/include/common/option.h +++ b/common/include/common/option.h @@ -80,7 +80,7 @@ struct Option * option_get (const char * module, const char * name); int option_get_int (const char * module, const char * name); const char * option_get_string(const char * module, const char * name); bool option_get_bool (const char * module, const char * name); -bool option_get_float (const char * module, const char * name); +float option_get_float (const char * module, const char * name); // called by the main application to parse the command line arguments bool option_parse(int argc, char * argv[]); diff --git a/common/src/option.c b/common/src/option.c index b3f0e78f..3e2fea76 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -793,7 +793,7 @@ bool option_get_bool(const char * module, const char * name) return o->value.x_bool; } -bool option_get_float(const char * module, const char * name) +float option_get_float(const char * module, const char * name) { struct Option * o = option_get(module, name); if (!o)