1
0
Fork 0
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:
Jörg Hohensohn 2004-01-30 23:55:02 +00:00
parent 73681ff4ef
commit 3dc1063dcc

View file

@ -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 */