fixed "warning: assignment discards ‘const’ qualifier from pointer target type"