api: fix some prototype checks