summaryrefslogtreecommitdiffstats
path: root/core/dive.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-22 21:44:16 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-02 08:04:49 -0700
commita353bcb2961b5c9104097ecf57eeeda4b9e37a9f (patch)
tree10399730264c5e596baf937ea7814e6a02f765c1 /core/dive.c
parenta1a2492438ab3e5521cd754cc4a1763b216034e5 (diff)
downloadsubsurface-a353bcb2961b5c9104097ecf57eeeda4b9e37a9f.tar.gz
Cleanup: make table argument to get_dive_from_table() const
Even though the returned dive is not const, the table is not changed, as it only contains pointers. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.c')
-rw-r--r--core/dive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c
index 05fa970b6..dd6edaa84 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3872,7 +3872,7 @@ struct dive *get_dive(int nr)
return dive_table.dives[nr];
}
-struct dive *get_dive_from_table(int nr, struct dive_table *dt)
+struct dive *get_dive_from_table(int nr, const struct dive_table *dt)
{
if (nr >= dt->nr || nr < 0)
return NULL;