nc: Fix issues located by vet.