diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2018-04-05 14:13:34 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-05-14 23:47:00 +0300 |
commit | 0e08c0870a1c82ded398e1d2fb830d61ffe6a647 (patch) | |
tree | dd61315c48a16c4f598a4e32dc3ac829a1ce8487 /core/divelist.c | |
parent | c1d04ef7dcbbe34eccf4515a59063ed807e8d5e5 (diff) | |
download | subsurface-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/divelist.c')
-rw-r--r-- | core/divelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.c b/core/divelist.c index c79cb56b5..d70130b31 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -415,7 +415,7 @@ static void add_dive_to_deco(struct deco_state *ds, struct dive *dive) struct divecomputer *dc = &dive->dc; struct gasmix *gasmix = NULL; struct event *ev = NULL; - struct event *ev_dmc = dc->events, *ev_dmt = get_next_divemodechange(&ev_dmc); + struct event *ev_dmc = dc->events, *ev_dmt = get_next_divemodechange(&ev_dmc, TRUE); int i; if (!dc) |