chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
013332b
)
floppy: use ARRAY_SIZE()
author
Kay Sievers
<kay.sievers@vrfy.org>
Sun, 23 Nov 2008 16:29:37 +0000
(17:29 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Sun, 23 Nov 2008 16:29:37 +0000
(17:29 +0100)
extras/floppy/create_floppy_devices.c
patch
|
blob
|
history
diff --git
a/extras/floppy/create_floppy_devices.c
b/extras/floppy/create_floppy_devices.c
index 14df052cf7b7e4964edc220fb9863ca5735b99cc..0698fcd3e83cf629f0e3173aa70eb0eed9afb7e5 100644
(file)
--- 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;
}