1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00

floppy: use ARRAY_SIZE()

This commit is contained in:
Kay Sievers 2008-11-23 17:29:37 +01:00
parent 013332b93c
commit 45a9e9e27b

View File

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