summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/dive.h2
-rw-r--r--core/equipment.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/dive.h b/core/dive.h
index ae24b7409..e9dd4fb59 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -869,7 +869,7 @@ struct ws_info_t {
};
extern struct ws_info_t ws_info[100];
-extern bool cylinder_nodata(cylinder_t *cyl);
+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);
diff --git a/core/equipment.c b/core/equipment.c
index 9f3e49039..1521c2309 100644
--- a/core/equipment.c
+++ b/core/equipment.c
@@ -53,7 +53,7 @@ void add_weightsystem_description(weightsystem_t *weightsystem)
}
}
-bool cylinder_nodata(cylinder_t *cyl)
+bool cylinder_nodata(const cylinder_t *cyl)
{
return !cyl->type.size.mliter &&
!cyl->type.workingpressure.mbar &&