From 6d1076e1f6faba0c77b2c4107777811da3ce3fac Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Thu, 12 Sep 2019 18:11:02 +0300 Subject: [PATCH] Mark dc_imex() as safe --- src/dc_imex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dc_imex.rs b/src/dc_imex.rs index 4726c74f0..21bc72125 100644 --- a/src/dc_imex.rs +++ b/src/dc_imex.rs @@ -29,7 +29,7 @@ use crate::x::*; // param1 is a directory where the keys are searched in and read from // param1 is a directory where the backup is written to // param1 is the file with the backup to import -pub unsafe fn dc_imex( +pub fn dc_imex( context: &Context, what: libc::c_int, param1: *const libc::c_char,