From 6b46e8ae57701f5b869651e920d0717443ab6e01 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 1 Nov 2020 21:44:30 +0100 Subject: 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 --- core/subsurface-time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/subsurface-time.h') 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); -- cgit v1.2.3-70-g09d2