aboutsummaryrefslogtreecommitdiffstats
path: root/core/equipment.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-03 23:14:35 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-05 10:14:25 -0800
commitab99ca85f12b92ed55219c82ec2220aebfe1dda5 (patch)
tree6d6710368d194a97465b63cc81220b0557d68917 /core/equipment.h
parentdc67876c7955b21f969545eee6f3ae3bdb550787 (diff)
downloadsubsurface-ab99ca85f12b92ed55219c82ec2220aebfe1dda5.tar.gz
Cleanup: use free_weightsystem function instead of explicit free
Instead of freeing internal data of the weightsystem structure, call the free_weightsystem function (which has to be made extern at first). This makes things more future-proof, should the weightsystem struct ever be extended. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/equipment.h')
-rw-r--r--core/equipment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/equipment.h b/core/equipment.h
index 2711d7703..77fd9c430 100644
--- a/core/equipment.h
+++ b/core/equipment.h
@@ -70,6 +70,7 @@ struct weightsystem_table {
extern int cylinderuse_from_text(const char *text);
extern void copy_weights(const struct weightsystem_table *s, struct weightsystem_table *d);
extern weightsystem_t clone_weightsystem(weightsystem_t ws);
+extern void free_weightsystem(weightsystem_t ws);
extern void copy_cylinder_types(const struct dive *s, struct dive *d);
extern void add_cloned_weightsystem(struct weightsystem_table *t, weightsystem_t ws);
extern cylinder_t *add_empty_cylinder(struct cylinder_table *t);