summaryrefslogtreecommitdiffstats
path: root/core/equipment.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-04 19:17:11 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-09 19:19:04 +0100
commitc26e922802826dc9e2f044312cc33d5a037f6a10 (patch)
treea1fc9c98acd90261b1d3bca46932d438d7fd7f7e /core/equipment.h
parent8df3705152aa32d8551b5fb7db08e0c8e442b480 (diff)
downloadsubsurface-c26e922802826dc9e2f044312cc33d5a037f6a10.tar.gz
Cleanup: return cylinder from add_empty_cylinder()
As a convenience, return the cylinder from add_empty_cylinder() to spare the caller from the nasty expression to fetch the last cylinder. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/equipment.h')
-rw-r--r--core/equipment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/equipment.h b/core/equipment.h
index ce5683003..86e23f9f8 100644
--- a/core/equipment.h
+++ b/core/equipment.h
@@ -69,7 +69,7 @@ extern int cylinderuse_from_text(const char *text);
extern void copy_weights(const struct weightsystem_table *s, struct weightsystem_table *d);
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 void add_empty_cylinder(struct cylinder_table *t);
+extern cylinder_t *add_empty_cylinder(struct cylinder_table *t);
extern void add_cloned_cylinder(struct cylinder_table *t, cylinder_t cyl);
extern cylinder_t *get_cylinder(const struct dive *d, int idx);
extern cylinder_t *get_or_create_cylinder(struct dive *d, int idx);