stop casting malloc return value