aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-02-08 17:15:50 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-08 19:41:45 +1100
commit9750b0ce06670de658ae5357ef44303f64e7de2b (patch)
treecb19c3b20073231507feb933a11a33380fdc99ca /dive.h
parent9846ba9e945c59062463fd43ed09eb73b5a528c8 (diff)
downloadsubsurface-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 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 54c4fd470..fcbaca713 100644
--- a/dive.h
+++ b/dive.h
@@ -598,7 +598,7 @@ extern void subsurface_command_line_exit(gint *, gchar ***);
#define FRACTION(n,x) ((unsigned)(n)/(x)),((unsigned)(n)%(x))
-extern double add_segment(double pressure, struct gasmix *gasmix, int period_in_seconds, int setpoint, const struct dive *dive);
+extern double add_segment(double pressure, const struct gasmix *gasmix, int period_in_seconds, int setpoint, const struct dive *dive);
extern void clear_deco(double surface_pressure);
extern void dump_tissues(void);
extern unsigned int deco_allowed_depth(double tissues_tolerance, double surface_pressure, struct dive *dive, gboolean smooth);