Use nitems(x) instead of sizeof(x)/sizeof(x[0])
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division