Rename nitems and string variables to avoid collisions
authorngie <ngie@FreeBSD.org>
Mon, 4 Jan 2016 03:02:44 +0000 (03:02 +0000)
committerngie <ngie@FreeBSD.org>
Mon, 4 Jan 2016 03:02:44 +0000 (03:02 +0000)
commitf07e33e8a7782c39ce932cab9600b47fab67c1fa
treeee19aba866e67913c1fad3edcd1ee951dd1f1468
parent9b4418aa8d6f85dd915094780464f0b93ba4fb11
Rename nitems and string variables to avoid collisions

Rename the `nitems` variable to `num_items` to avoid collisions with the
macro in sys/param.h for counting elements in an array

Similarly, rename `string` to `string_arr` to avoid future collisions with
potential keywords, as well as make it clear that `string_arr` isn't a char*
value, but instead a char** value.

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