Return -1 for not implemented RTC functions.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29546 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-03-08 21:36:47 +00:00
parent cc6cc53737
commit 294d058034
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ int set_time(const struct tm *tm)
}
#else /* No RTC */
(void)tm;
return 0;
return -1;
#endif /* RTC */
}

View File

@ -36,5 +36,5 @@ int rtc_read_datetime(struct tm *tm)
int rtc_write_datetime(const struct tm *tm)
{
(void)tm;
return 0;
return -1;
}