Utilize ARRAY_SIZE macro

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

No files matched your search

+1 -1
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)