diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-11 16:20:43 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-20 10:01:50 -0800 |
commit | ad1e57dd67d7e63ead760415377e8780660aa2de (patch) | |
tree | b3c4dcf9bf1d2b56f1ccad8856047e150b359d09 /core/divelist.c | |
parent | 5e1dcb0655fd6daa7914a78a83c5419bfbc93457 (diff) | |
download | subsurface-ad1e57dd67d7e63ead760415377e8780660aa2de.tar.gz |
cleanup: constify init_decompression()
This function initializes decompression data from a dive.
The dive is not modified, therefore make it const.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
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 c68ba2b79..fc02dac45 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -419,7 +419,7 @@ static struct gasmix air = { .o2.permille = O2_IN_AIR, .he.permille = 0 }; /* return negative surface time if dives are overlapping */ /* The place you call this function is likely the place where you want * to create the deco_state */ -int init_decompression(struct deco_state *ds, struct dive *dive) +int init_decompression(struct deco_state *ds, const struct dive *dive) { int i, divenr = -1; int surface_time = 48 * 60 * 60; |