mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
fe532a585c
commit
9b1ea2ae6d
3 changed files with 5 additions and 6 deletions
2
dive.h
2
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue