summaryrefslogtreecommitdiffstats
path: root/core/subsurface-time.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-08 13:32:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-29 08:34:09 -0800
commit4c85357dccf489110efe0439dde597843c7a8771 (patch)
tree8f7dd2387b54b6202f61606aa01fc8227bde381e /core/subsurface-time.h
parentbbbd4c88180d43604c5e6bbe093461e93859d706 (diff)
downloadsubsurface-4c85357dccf489110efe0439dde597843c7a8771.tar.gz
cleanup: move monthname to time.c
Weirdly, this function was declared in dive.h and defined in subsurface-startup.c. Let's move declaration and definition to more appropriate places, viz. subsurface-time.h and time.c. 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, 2 insertions, 0 deletions
diff --git a/core/subsurface-time.h b/core/subsurface-time.h
index 8d564753f..828a8ef02 100644
--- a/core/subsurface-time.h
+++ b/core/subsurface-time.h
@@ -18,6 +18,8 @@ extern int utc_weekday(timestamp_t timestamp);
extern timestamp_t parse_datetime(const char *s); /* returns 0 on error */
extern char *format_datetime(timestamp_t timestamp); /* ownership of string passed to caller */
+extern const char *monthname(int mon);
+
#ifdef __cplusplus
}
#endif