summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-04-15 18:34:20 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-04-15 18:34:20 +0000
commit7697609455f3c05a1e0ea4167f10ec7312269a1e (patch)
tree6663e68d70d3c717ce47cb5f3488da2e75d499eb /firmware
parentfd1e1b7706c47c2c1dff29819bad73118818a512 (diff)
Fixed FS#7849
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17123 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/timefuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c
index 9865b0fe17..659c589155 100644
--- a/firmware/common/timefuncs.c
+++ b/firmware/common/timefuncs.c
@@ -116,7 +116,7 @@ int set_time(const struct tm *tm)
rc = rtc_write_datetime(rtcbuf);
- if(rc)
+ if (rc < 0)
return -1;
else
return 0;