diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-22 22:14:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-22 14:40:49 -0700 |
commit | 87c91af82407857ca0b14bbef992bca2ce0cfafd (patch) | |
tree | 6e6b5a0b4cdf7c4e78429fdcf92de0c36b839da4 /core/dive.h | |
parent | 9365061e2799439532f4de1084735a141924330f (diff) | |
download | subsurface-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.h')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h index 3cf0323c9..7f4f805c6 100644 --- a/core/dive.h +++ b/core/dive.h @@ -272,7 +272,7 @@ extern bool dive_site_has_gps_location(const struct dive_site *ds); extern int dive_has_gps_location(const struct dive *dive); extern location_t dive_get_gps_location(const struct dive *d); -extern bool time_during_dive_with_offset(struct dive *dive, timestamp_t when, timestamp_t offset); +extern bool time_during_dive_with_offset(const struct dive *dive, timestamp_t when, timestamp_t offset); /* Check if two dive computer entries are the exact same dive (-1=no/0=maybe/1=yes) */ extern int match_one_dc(const struct divecomputer *a, const struct divecomputer *b); |