summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2018-04-05 14:13:34 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-05-14 23:47:00 +0300
commit0e08c0870a1c82ded398e1d2fb830d61ffe6a647 (patch)
treedd61315c48a16c4f598a4e32dc3ac829a1ce8487 /core/dive.h
parentc1d04ef7dcbbe34eccf4515a59063ed807e8d5e5 (diff)
downloadsubsurface-0e08c0870a1c82ded398e1d2fb830d61ffe6a647.tar.gz
Simplify the bailout detection functions.
Function peek_next_divemodechange() is redundant if get_next_divemodechange() has one additional parameter. Calls to get_next_divemodechange() were updated in divelist.c, plannernotes.c and profile.c. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index c46b9d64a..6fb1509b4 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -362,7 +362,7 @@ struct dive_components {
unsigned int weights : 1;
};
-extern struct event *get_next_divemodechange(struct event **evd);
+extern struct event *get_next_divemodechange(struct event **evd, bool update_pointer);
extern enum dive_comp_type get_divemode_at_time(struct divecomputer *dc, int dtime, struct event **ev_dmc);
/* picture list and methods related to dive picture handling */