mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
floppy: use ARRAY_SIZE()
This commit is contained in:
parent
013332b93c
commit
45a9e9e27b
@ -137,7 +137,7 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (type < 0 || type >= (int) (sizeof(table_sup) / sizeof(table_sup[0]))) {
|
||||
if (type < 0 || type >= (int) ARRAY_SIZE(table_sup)) {
|
||||
fprintf(stderr,"Invalid CMOS type %d\n", type);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user