fix the warning of warning: assignment discards qualifiers from pointer target type