summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/subsurface-time.h2
-rw-r--r--core/time.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/subsurface-time.h b/core/subsurface-time.h
index 828a8ef02..097aa5215 100644
--- a/core/subsurface-time.h
+++ b/core/subsurface-time.h
@@ -9,7 +9,7 @@
extern "C" {
#endif
-extern timestamp_t utc_mktime(struct tm *tm);
+extern timestamp_t utc_mktime(const struct tm *tm);
extern void utc_mkdate(timestamp_t, struct tm *tm);
extern int utc_year(timestamp_t timestamp);
extern int utc_weekday(timestamp_t timestamp);
diff --git a/core/time.c b/core/time.c
index 861d7b1d5..0dd47856b 100644
--- a/core/time.c
+++ b/core/time.c
@@ -99,7 +99,7 @@ void utc_mkdate(timestamp_t timestamp, struct tm *tm)
tm->tm_mon = m;
}
-timestamp_t utc_mktime(struct tm *tm)
+timestamp_t utc_mktime(const struct tm *tm)
{
static const int mdays[] = {
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334