summaryrefslogtreecommitdiffstats
path: root/core/save-html.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-02 21:21:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 11:03:30 -0700
commit2bd0c2143ecfca36ffa38b48d89dad7c57634ea9 (patch)
treebb8f14ceb4db949ec2e90f75c9b7cfc3ed0aa4dd /core/save-html.c
parent2635673c3ad89261ef77d554abf648ebe5f4cc89 (diff)
downloadsubsurface-2bd0c2143ecfca36ffa38b48d89dad7c57634ea9.tar.gz
Cleanup: constify get_units()
get_units() returns a pointer to the units struct in the preferences. Callers should not modify the preferences via this struct, therefore make the return value point to const. This is a small step in constifying the global preferences structure. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/save-html.c')
-rw-r--r--core/save-html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-html.c b/core/save-html.c
index 38f48e8c4..413718692 100644
--- a/core/save-html.c
+++ b/core/save-html.c
@@ -273,7 +273,7 @@ void put_HTML_depth(struct membuffer *b, struct dive *dive, const char *pre, con
{
const char *unit;
double value;
- struct units *units_p = get_units();
+ const struct units *units_p = get_units();
if (!dive->maxdepth.mm) {
put_format(b, "%s--%s", pre, post);