From 9750b0ce06670de658ae5357ef44303f64e7de2b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 8 Feb 2013 17:15:50 +1100 Subject: 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 Signed-off-by: Dirk Hohndel --- deco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deco.c') diff --git a/deco.c b/deco.c index 6e73c50cb..023a20f72 100644 --- a/deco.c +++ b/deco.c @@ -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; -- cgit v1.2.3-70-g09d2