diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-01 21:44:30 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-29 08:34:09 -0800 |
commit | 6b46e8ae57701f5b869651e920d0717443ab6e01 (patch) | |
tree | b8a27aaa7f42761934d066ffc4c155d6020383d3 /core/time.c | |
parent | 4c85357dccf489110efe0439dde597843c7a8771 (diff) | |
download | subsurface-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/time.c')
-rw-r--r-- | core/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |