diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-23 17:29:37 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-23 17:29:37 +0100 |
commit | 45a9e9e27b9a497985ec68d6a21e2e4eea05922b (patch) | |
tree | 28d09d4bc069742d7a723e27bb2e8478090effd6 /extras | |
parent | 013332b93c880692e51d1056528c805fd7e4a882 (diff) |
floppy: use ARRAY_SIZE()
Diffstat (limited to 'extras')
-rw-r--r-- | extras/floppy/create_floppy_devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/floppy/create_floppy_devices.c b/extras/floppy/create_floppy_devices.c index 14df052cf7..0698fcd3e8 100644 --- a/extras/floppy/create_floppy_devices.c +++ b/extras/floppy/create_floppy_devices.c @@ -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; } |