Utilize ARRAY_SIZE macro

This commit is contained in:
CTCaer
2020-11-15 13:56:45 +02:00
parent 55568b037f
commit 669e42960c
6 changed files with 11 additions and 10 deletions

View File

@@ -134,7 +134,7 @@ static const pkg1_id_t _pkg1_ids[] = {
const pkg1_id_t *pkg1_get_latest()
{
return &_pkg1_ids[sizeof(_pkg1_ids) / sizeof(pkg1_id_t) - 2];
return &_pkg1_ids[ARRAY_SIZE(_pkg1_ids) - 2];
}
const pkg1_id_t *pkg1_identify(u8 *pkg1)