proxmox_backup_abort: use *const char

This commit is contained in:
Dietmar Maurer 2019-09-21 15:56:26 +02:00
parent 64100fed29
commit 1402fea34b

View File

@ -558,7 +558,7 @@ pub extern "C" fn proxmox_backup_connect(error: * mut * mut c_char) -> *mut Prox
#[no_mangle] #[no_mangle]
pub extern "C" fn proxmox_backup_abort( pub extern "C" fn proxmox_backup_abort(
handle: *mut ProxmoxBackupHandle, handle: *mut ProxmoxBackupHandle,
reason: *mut c_char, reason: *const c_char,
) { ) {
let task = unsafe { &mut *(handle as * mut BackupTask) }; let task = unsafe { &mut *(handle as * mut BackupTask) };