summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 20:56:29 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 20:57:11 -0700
commit28093ae957548d5fc1e4d373ca0a345cc1be5069 (patch)
treef8899ae3e24033781bf707ceac959636be063917 /dive.c
parentee36bf8bf34013c35120b6c3cc4ae5edcf74b235 (diff)
downloadsubsurface-28093ae957548d5fc1e4d373ca0a345cc1be5069.tar.gz
Remove is_air() and convert its users to gasmix
Also make gasname() and get_gas_string() global functions (which allows us to delete code elsewhere). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index aad4b07a5..9cfdfc14a 100644
--- a/dive.c
+++ b/dive.c
@@ -546,7 +546,7 @@ void sanitize_gasmix(struct gasmix *mix)
if (!o2)
return;
/* 20.8% to 21% O2 is just air */
- if (is_air(o2, he)) {
+ if (gasmix_is_air(mix)) {
mix->o2.permille = 0;
return;
}