diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-08 17:15:50 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-08 19:41:45 +1100 |
commit | 9750b0ce06670de658ae5357ef44303f64e7de2b (patch) | |
tree | cb19c3b20073231507feb933a11a33380fdc99ca /deco.c | |
parent | 9846ba9e945c59062463fd43ed09eb73b5a528c8 (diff) | |
download | subsurface-9750b0ce06670de658ae5357ef44303f64e7de2b.tar.gz |
The 'gasmix' argument to add_segment() is read-only
We'll want to use a 'static const' gasmix for the upcoming no-fly-time
code, so prepare for it by just marking the read-only gasmix argument as
'const'.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'deco.c')
-rw-r--r-- | deco.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ static double tissue_tolerance_calc(const struct dive *dive) } /* add period_in_seconds at the given pressure and gas to the deco calculation */ -double add_segment(double pressure, struct gasmix *gasmix, int period_in_seconds, int ccpo2, const struct dive *dive) +double add_segment(double pressure, const struct gasmix *gasmix, int period_in_seconds, int ccpo2, const struct dive *dive) { int ci; int fo2 = gasmix->o2.permille ? gasmix->o2.permille : O2_IN_AIR; |