mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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>
This commit is contained in:
parent
9005274986
commit
7a444c0210
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Reference in a new issue