diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index b632f54e9..c7d949679 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -431,7 +431,7 @@ int dc_set_config_from_qr (dc_context_t* context, const char* qr); * @param context The context object. * @return String which must be released using dc_str_unref() after usage. Never returns NULL. */ -char* dc_get_info (dc_context_t* context); +char* dc_get_info (const dc_context_t* context); /** diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index cdc2c99a0..627e79fff 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -218,7 +218,7 @@ pub unsafe extern "C" fn dc_set_config_from_qr( } #[no_mangle] -pub unsafe extern "C" fn dc_get_info(context: *mut dc_context_t) -> *mut libc::c_char { +pub unsafe extern "C" fn dc_get_info(context: *const dc_context_t) -> *mut libc::c_char { if context.is_null() { eprintln!("ignoring careless call to dc_get_info()"); return "".strdup();