libnetapi: style cleanup