summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/option.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/option.h b/src/include/option.h
index 4de032bd49..e7db02e88a 100644
--- a/src/include/option.h
+++ b/src/include/option.h
@@ -10,7 +10,7 @@ void sanitize_cmos(void);
enum cb_err cmos_set_option(const char *name, void *val);
enum cb_err cmos_get_option(void *dest, const char *name);
-static inline enum cb_err set_int_option(const char *name, int value)
+static inline enum cb_err set_uint_option(const char *name, unsigned int value)
{
if (CONFIG(USE_OPTION_TABLE))
return cmos_set_option(name, &value);
@@ -18,10 +18,10 @@ static inline enum cb_err set_int_option(const char *name, int value)
return CB_CMOS_OTABLE_DISABLED;
}
-static inline int get_int_option(const char *name, const int fallback)
+static inline int get_uint_option(const char *name, const unsigned int fallback)
{
if (CONFIG(USE_OPTION_TABLE)) {
- int value = 0;
+ unsigned int value = 0;
if (cmos_get_option(&value, name) == CB_SUCCESS)
return value;
}