diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-08-18 12:53:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-23 05:21:08 -0700 |
commit | ecb64d7e3e3c6c875defc9dc4aab01c65ccddf8a (patch) | |
tree | 58a9142c79a10bca2935f0a29fa63c8b9e565711 /core/dive.h | |
parent | 62672276d0457e8890aed57e4ca114e9daac16f2 (diff) | |
download | subsurface-ecb64d7e3e3c6c875defc9dc4aab01c65ccddf8a.tar.gz |
Cleanup: user properly typed pointers
A trivial cleanup: replace void by properly typed pointers in
cylinder_none() and weightsystem_none(). Moreover, remove the
unused function no_weightsystems().
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/dive.h b/core/dive.h index 45b35190e..1338cb72a 100644 --- a/core/dive.h +++ b/core/dive.h @@ -749,9 +749,8 @@ struct ws_info_t { extern struct ws_info_t ws_info[MAX_WS_INFO]; extern bool cylinder_nodata(const cylinder_t *cyl); -extern bool cylinder_none(void *_data); -extern bool weightsystem_none(void *_data); -extern bool no_weightsystems(weightsystem_t *ws); +extern bool cylinder_none(const cylinder_t *cyl); +extern bool weightsystem_none(const weightsystem_t *ws); extern void remove_cylinder(struct dive *dive, int idx); extern void remove_weightsystem(struct dive *dive, int idx); extern void reset_cylinders(struct dive *dive, bool track_gas); |