1
0
Fork 0
forked from len0rd/rockbox

Const policed pointer arguments to functions, part 2

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-08-17 01:45:48 +00:00
parent c76c568b35
commit 0ceaa5e365
17 changed files with 55 additions and 51 deletions

View file

@ -27,7 +27,7 @@
static struct tm tm;
#endif
bool valid_time(struct tm *tm)
bool valid_time(const struct tm *tm)
{
if (tm->tm_hour < 0 || tm->tm_hour > 23 ||
tm->tm_sec < 0 || tm->tm_sec > 59 ||
@ -81,7 +81,7 @@ struct tm *get_time(void)
#endif
}
int set_time(struct tm *tm)
int set_time(const struct tm *tm)
{
#ifdef HAVE_RTC
int rc;