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
@ -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…
x
Reference in New Issue
Block a user