From 7697609455f3c05a1e0ea4167f10ec7312269a1e Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Tue, 15 Apr 2008 18:34:20 +0000 Subject: [PATCH] Fixed FS#7849 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17123 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/timefuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;