Use *mut for arguments that can take ptr::null_mut()