diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-12-25 14:01:47 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-12-25 14:01:47 +0000 |
commit | 2597a1349772fe505d27cb94392eb4d8a3c3b35d (patch) | |
tree | 185a4809430f9dded488bb1b058d3f97345058a3 /apps/settings.c | |
parent | 37aeb12cc99cc22f62c44d5b0adcae35d0c471d8 (diff) | |
download | rockbox-2597a1349772fe505d27cb94392eb4d8a3c3b35d.tar.gz rockbox-2597a1349772fe505d27cb94392eb4d8a3c3b35d.zip |
Next round of static'ing and related fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11836 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 18 |
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 | ||
765 | int hex_to_rgb(const char* hex) | 765 | static 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 | ||
824 | bool flush_config_block_callback(void) | 824 | static 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 */ |
1944 | static void (*boolfunction)(bool); | 1944 | static void (*boolfunction)(bool); |
1945 | void bool_funcwrapper(int value) | 1945 | static 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 | ||
1970 | void talk_unit(int unit, int value) | 1970 | static 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 | ||
1999 | char * value_setting_get_name_cb(int selected_item,void * data, char *buffer) | 1999 | static 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)) |
2019 | bool do_set_setting(const unsigned char* string, void *variable, | 2019 | static 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; |