summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-01-30 23:27:44 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-01-30 23:27:44 +0000
commit73681ff4ef9d31dce166497e441487523545f19f (patch)
tree270ac4f401ca0d4be394b8ed6c74f2961fda418f /firmware/backlight.c
parent25a1add8cf8486b2297f2e62aaf1e0d4adca013e (diff)
inconsistent argument type for backlight_set_timeout() fixed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4287 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index d3b4580daa..1e8ef3d3ab 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -126,9 +126,9 @@ int backlight_get_timeout(void)
return backlight_timeout;
}
-void backlight_set_timeout(unsigned int index)
+void backlight_set_timeout(int index)
{
- if(index >= sizeof(backlight_timeout_value))
+ if(index >= sizeof(backlight_timeout_value) || index < 0)
/* if given a weird value, use 0 */
index=0;
backlight_timeout = index; /* index in the backlight_timeout_value table */