summaryrefslogtreecommitdiffstats
path: root/core/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/dive.c')
-rw-r--r--core/dive.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/dive.c b/core/dive.c
index 9167724d9..7e0a8a66d 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3316,6 +3316,11 @@ struct divecomputer *get_dive_dc(struct dive *dive, int nr)
return dc;
}
+const struct divecomputer *get_dive_dc_const(const struct dive *dive, int nr)
+{
+ return get_dive_dc((struct dive *)dive, nr);
+}
+
struct dive *get_dive_by_uniq_id(int id)
{
int i;