summaryrefslogtreecommitdiffstats
path: root/core/planner.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-02 21:32:12 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commitdee7fd9f308caae16045038b67dedd604a4d0ac2 (patch)
tree21c408972e6a30c849e25e1a19315880e1e0c916 /core/planner.c
parentdcc1d3ed6389b983982063b3829633e2e8d180b6 (diff)
downloadsubsurface-dee7fd9f308caae16045038b67dedd604a4d0ac2.tar.gz
cleanup: use SAMPLE_EVENT_BOOKMARK in add_event() calls
In two cases we were passing the magic value 8 instead of the symbolic SAMPLE_EVENT_BOOKMARK. Use the symbolic version instead. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/planner.c')
-rw-r--r--core/planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/planner.c b/core/planner.c
index 204958a7e..a5f0d36bc 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -284,7 +284,7 @@ static void create_dive_from_plan(struct diveplan *diveplan, struct dive *dive,
}
if (dp->divemode != type) {
type = dp->divemode;
- add_event(dc, lasttime, 8, 0, type, "modechange");
+ add_event(dc, lasttime, SAMPLE_EVENT_BOOKMARK, 0, type, "modechange");
}
/* Create sample */