diff options
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; |