Fix pointer-sign warnings
Fix incorrect function prototype