error: assignment discards 'const' qualifier from pointer target