summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-09 09:52:59 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-09 09:52:59 -0800
commit9b1ea2ae6d6998aaaa842dabf1182c279f7d19f5 (patch)
tree5f41c0bfa1c471fd86b691c5f004c1d9d4b666d5 /dive.h
parentfe532a585cb0c1250cca5994a78394aadc3e14dd (diff)
downloadsubsurface-9b1ea2ae6d6998aaaa842dabf1182c279f7d19f5.tar.gz
Use common helper function for the "no cylinder info" case
Miika fixed the statistics code that didn't properly check for the "no cylinder info" case - this cleans it up and just uses the helper function in equipment.c. Rename the helper to be slightly better named while at it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index f0808efb4..0549843ab 100644
--- a/dive.h
+++ b/dive.h
@@ -87,6 +87,8 @@ typedef struct {
pressure_t start, end, sample_start, sample_end;
} cylinder_t;
+extern int cylinder_none(cylinder_t *cyl);
+
extern int get_pressure_units(unsigned int mb, const char **units);
extern double get_depth_units(unsigned int mm, int *frac, const char **units);
extern double get_volume_units(unsigned int mm, int *frac, const char **units);