Fix pointer declaration error