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>
This commit is contained in:
Berthold Stoeger 2021-01-11 16:20:43 +01:00 committed by Dirk Hohndel
parent 5e1dcb0655
commit ad1e57dd67
2 changed files with 2 additions and 2 deletions

View file

@ -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;