summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2016-04-02 13:50:17 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-04 22:37:18 -0700
commit7a444c0210783b926c9f60dd7b436eb086e8f396 (patch)
treedd28e264029ce940216309d8ba6f593987849ffa
parent900527498690c80b5303a608002431966bacae93 (diff)
downloadsubsurface-7a444c0210783b926c9f60dd7b436eb086e8f396.tar.gz
Make cylinder_nodata() take a const cylinder pointer
Some of the gas mix cleanups I'm doing are in code that uses const pointers, and wants to use this. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 &&