forked from len0rd/rockbox
hope I killed that warning now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4288 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
73681ff4ef
commit
3dc1063dcc
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ int backlight_get_timeout(void)
|
||||||
|
|
||||||
void backlight_set_timeout(int index)
|
void backlight_set_timeout(int index)
|
||||||
{
|
{
|
||||||
if(index >= sizeof(backlight_timeout_value) || index < 0)
|
if((unsigned)index >= sizeof(backlight_timeout_value))
|
||||||
/* if given a weird value, use 0 */
|
/* if given a weird value, use 0 */
|
||||||
index=0;
|
index=0;
|
||||||
backlight_timeout = index; /* index in the backlight_timeout_value table */
|
backlight_timeout = index; /* index in the backlight_timeout_value table */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue