summaryrefslogtreecommitdiffstats
path: root/core/dive.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-22 22:14:24 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-22 14:40:49 -0700
commit87c91af82407857ca0b14bbef992bca2ce0cfafd (patch)
tree6e6b5a0b4cdf7c4e78429fdcf92de0c36b839da4 /core/dive.c
parent9365061e2799439532f4de1084735a141924330f (diff)
downloadsubsurface-87c91af82407857ca0b14bbef992bca2ce0cfafd.tar.gz
cleanup: constify time_during_dive_with_offset() function
There is no reason to pass a non-const dive pointer as first argument. 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 7b37eef38..60b7d1faa 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3394,7 +3394,7 @@ timestamp_t dive_endtime(const struct dive *dive)
return dive->when + dive_totaltime(dive);
}
-bool time_during_dive_with_offset(struct dive *dive, timestamp_t when, timestamp_t offset)
+bool time_during_dive_with_offset(const struct dive *dive, timestamp_t when, timestamp_t offset)
{
timestamp_t start = dive->when;
timestamp_t end = dive_endtime(dive);