summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/settings.c b/apps/settings.c
index d4359fda79..52ad72f9f3 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -762,7 +762,7 @@ static void set_bits(
762#define hex2dec(c) (((c) >= '0' && ((c) <= '9')) ? (toupper(c)) - '0' : \ 762#define hex2dec(c) (((c) >= '0' && ((c) <= '9')) ? (toupper(c)) - '0' : \
763 (toupper(c)) - 'A' + 10) 763 (toupper(c)) - 'A' + 10)
764 764
765int hex_to_rgb(const char* hex) 765static int hex_to_rgb(const char* hex)
766{ int ok = 1; 766{ int ok = 1;
767 int i; 767 int i;
768 int red, green, blue; 768 int red, green, blue;
@@ -821,7 +821,7 @@ static void init_config_buffer( void )
821 config_block[3] = CONFIG_BLOCK_VERSION; 821 config_block[3] = CONFIG_BLOCK_VERSION;
822} 822}
823 823
824bool flush_config_block_callback(void) 824static bool flush_config_block_callback(void)
825{ 825{
826 ata_write_sectors(IF_MV2(0,) config_sector, 1, config_block); 826 ata_write_sectors(IF_MV2(0,) config_sector, 1, config_block);
827 return true; 827 return true;
@@ -1942,7 +1942,7 @@ bool set_bool(const char* string, bool* variable )
1942 1942
1943/* wrapper to convert from int param to bool param in set_option */ 1943/* wrapper to convert from int param to bool param in set_option */
1944static void (*boolfunction)(bool); 1944static void (*boolfunction)(bool);
1945void bool_funcwrapper(int value) 1945static void bool_funcwrapper(int value)
1946{ 1946{
1947 if (value) 1947 if (value)
1948 boolfunction(true); 1948 boolfunction(true);
@@ -1967,7 +1967,7 @@ bool set_bool_options(const char* string, bool* variable,
1967 return result; 1967 return result;
1968} 1968}
1969 1969
1970void talk_unit(int unit, int value) 1970static void talk_unit(int unit, int value)
1971{ 1971{
1972 if (global_settings.talk_menu) 1972 if (global_settings.talk_menu)
1973 { 1973 {
@@ -1996,7 +1996,7 @@ struct value_setting_data {
1996 struct opt_items* options; 1996 struct opt_items* options;
1997}; 1997};
1998 1998
1999char * value_setting_get_name_cb(int selected_item,void * data, char *buffer) 1999static char * value_setting_get_name_cb(int selected_item,void * data, char *buffer)
2000{ 2000{
2001 struct value_setting_data* cb_data = 2001 struct value_setting_data* cb_data =
2002 (struct value_setting_data*)data; 2002 (struct value_setting_data*)data;
@@ -2016,10 +2016,10 @@ char * value_setting_get_name_cb(int selected_item,void * data, char *buffer)
2016 (int)(*(int*)(value)) \ 2016 (int)(*(int*)(value)) \
2017 : \ 2017 : \
2018 (bool)(*(bool*)(value)) 2018 (bool)(*(bool*)(value))
2019bool do_set_setting(const unsigned char* string, void *variable, 2019static bool do_set_setting(const unsigned char* string, void *variable,
2020 int nb_items,int selected, 2020 int nb_items,int selected,
2021 struct value_setting_data *cb_data, 2021 struct value_setting_data *cb_data,
2022 void (*function)(int)) 2022 void (*function)(int))
2023{ 2023{
2024 int action; 2024 int action;
2025 bool done = false; 2025 bool done = false;