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:
Linus Torvalds 2016-04-02 13:50:17 -05:00 committed by Dirk Hohndel
parent 9005274986
commit 7a444c0210
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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 &&