diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-17 01:45:48 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-17 01:45:48 +0000 |
commit | 0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb (patch) | |
tree | 7fe6cbadea41f09765b631794b71d65fdbbbffbc /firmware/common | |
parent | c76c568b351d37c485f78cd185b2d52d54fe7a34 (diff) | |
download | rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.tar.gz rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.zip |
Const policed pointer arguments to functions, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/timefuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index 9d56126b17..1e95733399 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c | |||
@@ -27,7 +27,7 @@ | |||
27 | static struct tm tm; | 27 | static struct tm tm; |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | bool valid_time(struct tm *tm) | 30 | bool valid_time(const struct tm *tm) |
31 | { | 31 | { |
32 | if (tm->tm_hour < 0 || tm->tm_hour > 23 || | 32 | if (tm->tm_hour < 0 || tm->tm_hour > 23 || |
33 | tm->tm_sec < 0 || tm->tm_sec > 59 || | 33 | tm->tm_sec < 0 || tm->tm_sec > 59 || |
@@ -81,7 +81,7 @@ struct tm *get_time(void) | |||
81 | #endif | 81 | #endif |
82 | } | 82 | } |
83 | 83 | ||
84 | int set_time(struct tm *tm) | 84 | int set_time(const struct tm *tm) |
85 | { | 85 | { |
86 | #ifdef HAVE_RTC | 86 | #ifdef HAVE_RTC |
87 | int rc; | 87 | int rc; |