diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-17 17:19:18 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-17 08:27:40 -0700 |
commit | 810880ea1d435e273d2f9b7c2292f3eb6134b1f1 (patch) | |
tree | cfa55eed96802088aa2e95ddf76177b0e7ccbdbf /statistics.c | |
parent | 3cdd4df8e8df98b20d60ee01988b69e47a855b60 (diff) | |
download | subsurface-810880ea1d435e273d2f9b7c2292f3eb6134b1f1.tar.gz |
Rename is_gas_used to is_gas_used
This function operates on cylinder ids, so its actually about cylinders
not gases.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
-rw-r--r-- | statistics.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/statistics.c b/statistics.c index 6b7983098..68b9cdd58 100644 --- a/statistics.c +++ b/statistics.c @@ -292,7 +292,7 @@ void get_selected_dives_text(char *buffer, int size) } } -static bool is_gas_used(struct dive *dive, int idx) +static bool is_cylinder_used(struct dive *dive, int idx) { struct divecomputer *dc; bool firstGasExplicit = false; @@ -321,7 +321,7 @@ void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS]) cylinder_t *cyl = &dive->cylinder[idx]; pressure_t start, end; - if (!is_gas_used(dive, idx)) + if (!is_cylinder_used(dive, idx)) continue; start = cyl->start.mbar ? cyl->start : cyl->sample_start; @@ -341,7 +341,7 @@ char *get_gaslist(struct dive *dive) buf[0] = '\0'; for (idx = 0; idx < MAX_CYLINDERS; idx++) { cylinder_t *cyl; - if (!is_gas_used(dive, idx)) + if (!is_cylinder_used(dive, idx)) continue; cyl = &dive->cylinder[idx]; if (offset > 0) { |