api: coding style fixes #52