[th/nm-g-array-index] use nm_g_array_index()
"checkpatch.pl" suggests to use nm_g_array_index()
/nm_g_array_index_p()
instead of g_array_index()
. I added that check, but I also think that's what should be done. Change a few uses.
Also add a code comment to nm_g_array_index_p()
, as it's not obvious why that even exits.