diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-06-05 20:26:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-06-19 13:11:10 -0700 |
commit | 219c230506a6af45962071a1be2e875e13f4851e (patch) | |
tree | 232907f33fcbf43e114f81b0698b4ad4543391ac /core/equipment.h | |
parent | d129085b59df6e84f0415c347e8425c13b5ca868 (diff) | |
download | subsurface-219c230506a6af45962071a1be2e875e13f4851e.tar.gz |
Cleanup: constify two equipment helper functions
add_cylinder_description() and add_weightsystem_description() don't
modify their input parameter. constify them.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/equipment.h')
-rw-r--r-- | core/equipment.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/equipment.h b/core/equipment.h index eb789ede8..e4c654689 100644 --- a/core/equipment.h +++ b/core/equipment.h @@ -46,8 +46,8 @@ typedef struct #define W_IDX_PRIMARY 0 #define W_IDX_SECONDARY 1 -extern void add_cylinder_description(cylinder_type_t *); -extern void add_weightsystem_description(weightsystem_t *); +extern void add_cylinder_description(const cylinder_type_t *); +extern void add_weightsystem_description(const weightsystem_t *); extern bool cylinder_nodata(const cylinder_t *cyl); extern bool cylinder_none(const cylinder_t *cyl); extern bool weightsystem_none(const weightsystem_t *ws); |