Cleanup: const warning

This commit is contained in:
2021-03-13 03:14:41 +11:00
parent f707783d5f
commit 651fe243e6

View File

@@ -555,14 +555,14 @@ static void read_file_version(FileData *fd, Main *main)
} }
} }
static bool blo_bhead_is_id(BHead *bhead) static bool blo_bhead_is_id(const BHead *bhead)
{ {
/* BHead codes are four bytes (like 'ENDB', 'TEST', etc.), but if the two most-significant bytes /* BHead codes are four bytes (like 'ENDB', 'TEST', etc.), but if the two most-significant bytes
* are zero, the values actually indicate an ID type. */ * are zero, the values actually indicate an ID type. */
return bhead->code <= 0xFFFF; return bhead->code <= 0xFFFF;
} }
static bool blo_bhead_is_id_valid_type(BHead *bhead) static bool blo_bhead_is_id_valid_type(const BHead *bhead)
{ {
if (!blo_bhead_is_id(bhead)) { if (!blo_bhead_is_id(bhead)) {
return false; return false;