libnetapi: second pass of style cleanup

* remarks from Axel