chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
path_id: rework SAS persistent names
[elogind.git]
/
extras
/
floppy
/
create_floppy_devices.c
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;
}