summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r--apps/settings_list.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index cfac08835c..6ebeb23658 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -192,7 +192,7 @@ static long rectime_getlang(int value)
192 return LANG_OFF; 192 return LANG_OFF;
193 return TALK_ID(value, UNIT_SEC); 193 return TALK_ID(value, UNIT_SEC);
194} 194}
195static void rectime_formatter(char *buffer, int buffer_size, 195static void rectime_formatter(char *buffer, size_t buffer_size,
196 int val, const char *unit) 196 int val, const char *unit)
197{ 197{
198 (void)unit; 198 (void)unit;
@@ -207,7 +207,7 @@ static void rectime_formatter(char *buffer, int buffer_size,
207#ifdef HAVE_BACKLIGHT 207#ifdef HAVE_BACKLIGHT
208static const char backlight_times_conf [] = 208static const char backlight_times_conf [] =
209 "off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90"; 209 "off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90";
210static void backlight_formatter(char *buffer, int buffer_size, 210static void backlight_formatter(char *buffer, size_t buffer_size,
211 int val, const char *unit) 211 int val, const char *unit)
212{ 212{
213 (void)unit; 213 (void)unit;
@@ -233,7 +233,7 @@ static long ff_rewind_min_step_getlang(int value)
233{ 233{
234 return TALK_ID(ff_rewind_min_stepvals[value], UNIT_SEC); 234 return TALK_ID(ff_rewind_min_stepvals[value], UNIT_SEC);
235} 235}
236static void ff_rewind_min_step_formatter(char *buffer, int buffer_size, 236static void ff_rewind_min_step_formatter(char *buffer, size_t buffer_size,
237 int val, const char *unit) 237 int val, const char *unit)
238{ 238{
239 (void)unit; 239 (void)unit;
@@ -245,7 +245,7 @@ static long scanaccel_getlang(int value)
245 return LANG_OFF; 245 return LANG_OFF;
246 return TALK_ID(value, UNIT_SEC); 246 return TALK_ID(value, UNIT_SEC);
247} 247}
248static void scanaccel_formatter(char *buffer, int buffer_size, 248static void scanaccel_formatter(char *buffer, size_t buffer_size,
249 int val, const char *unit) 249 int val, const char *unit)
250{ 250{
251 (void)unit; 251 (void)unit;
@@ -262,7 +262,7 @@ static long poweroff_idle_timer_getlang(int value)
262 return LANG_OFF; 262 return LANG_OFF;
263 return TALK_ID(poweroff_idle_timer_times[value], UNIT_MIN); 263 return TALK_ID(poweroff_idle_timer_times[value], UNIT_MIN);
264} 264}
265static void poweroff_idle_timer_formatter(char *buffer, int buffer_size, 265static void poweroff_idle_timer_formatter(char *buffer, size_t buffer_size,
266 int val, const char *unit) 266 int val, const char *unit)
267{ 267{
268 (void)unit; 268 (void)unit;
@@ -279,7 +279,7 @@ static long listaccel_getlang(int value)
279 return LANG_OFF; 279 return LANG_OFF;
280 return TALK_ID((HZ/2)*value, UNIT_MS); 280 return TALK_ID((HZ/2)*value, UNIT_MS);
281} 281}
282static void listaccel_formatter(char *buffer, int buffer_size, 282static void listaccel_formatter(char *buffer, size_t buffer_size,
283 int val, const char *unit) 283 int val, const char *unit)
284{ 284{
285 (void)unit; 285 (void)unit;
@@ -291,7 +291,7 @@ static void listaccel_formatter(char *buffer, int buffer_size,
291#endif /* HAVE_SCROLLWHEEL */ 291#endif /* HAVE_SCROLLWHEEL */
292 292
293#if CONFIG_CODEC == SWCODEC 293#if CONFIG_CODEC == SWCODEC
294static void crossfeed_format(char* buffer, int buffer_size, int value, 294static void crossfeed_format(char* buffer, size_t buffer_size, int value,
295 const char* unit) 295 const char* unit)
296{ 296{
297 snprintf(buffer, buffer_size, "%s%d.%d %s", value == 0 ? " " : "-", 297 snprintf(buffer, buffer_size, "%s%d.%d %s", value == 0 ? " " : "-",
@@ -305,7 +305,7 @@ static void crossfeed_cross_set(int val)
305 global_settings.crossfeed_hf_cutoff); 305 global_settings.crossfeed_hf_cutoff);
306} 306}
307 307
308static void replaygain_preamp_format(char* buffer, int buffer_size, int value, 308static void replaygain_preamp_format(char* buffer, size_t buffer_size, int value,
309 const char* unit) 309 const char* unit)
310{ 310{
311 int v = abs(value); 311 int v = abs(value);