aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-time.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-01 21:44:30 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-29 08:34:09 -0800
commit6b46e8ae57701f5b869651e920d0717443ab6e01 (patch)
treeb8a27aaa7f42761934d066ffc4c155d6020383d3 /core/subsurface-time.h
parent4c85357dccf489110efe0439dde597843c7a8771 (diff)
downloadsubsurface-6b46e8ae57701f5b869651e920d0717443ab6e01.tar.gz
cleanup: const-ify utc_mktime()
To make it clear that the struct tm is only used as an input parameter. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-time.h')
-rw-r--r--core/subsurface-time.h2
1 files changed, 1 insertions, 1 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);