]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use `nitems(x)` macro instead of using hardcoded numbers for indices into
authorngie <ngie@FreeBSD.org>
Mon, 4 Jan 2016 03:26:36 +0000 (03:26 +0000)
committerngie <ngie@FreeBSD.org>
Mon, 4 Jan 2016 03:26:36 +0000 (03:26 +0000)
commite324a485ff22421547461b6a53d57357b37262aa
tree498760608178baf034a983bf15b4a951aec668f3
parent749ad0ff5aafedf2c7259fdee54d8fa7a79a5a71
Use `nitems(x)` macro instead of using hardcoded numbers for indices into
the nvlists

Convert some of the variables from int to unsigned int to squelch -Wsign-compare
warnings when converting hardcoded values to nitems(..)

Differential Revision: https://reviews.freebsd.org/D4769 (part of larger diff)
MFC after: 5 days
Reviewed by: oshogbo
Sponsored by: EMC / Isilon Storage Division
lib/libnv/tests/nv_array_tests.cc