mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
Use nitems(x) instead of sizeof(x)/sizeof(x[0])
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
55972acf7f
commit
0c646040e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290251
|
@ -119,10 +119,10 @@ __FBSDID("$FreeBSD$");
|
|||
*/
|
||||
static const int file_modes[] = { O_RDONLY, O_WRONLY, O_RDWR,
|
||||
O_RDONLY | O_TRUNC, O_WRONLY | O_TRUNC, O_RDWR | O_TRUNC };
|
||||
static const int file_modes_count = sizeof(file_modes) / sizeof(int);
|
||||
static const int file_modes_count = nitems(file_modes);
|
||||
|
||||
static const int dir_modes[] = { O_RDONLY };
|
||||
static const int dir_modes_count = sizeof(dir_modes) / sizeof(int);
|
||||
static const int dir_modes_count = nitems(dir_modes);
|
||||
|
||||
static int testnum;
|
||||
static int aio_present;
|
||||
|
|
Loading…
Reference in a new issue