Remove mangling for dc_strbuilder_cat() and dc_strdup()

This commit is contained in:
Lars-Magnus Skog
2019-04-26 21:34:24 +02:00
parent d06117dcdf
commit 2121a36bfe
2 changed files with 0 additions and 2 deletions

View File

@@ -33,7 +33,6 @@ pub unsafe extern "C" fn dc_strbuilder_init(
(*strbuilder).free = (*strbuilder).allocated - 1i32;
(*strbuilder).eos = (*strbuilder).buf;
}
#[no_mangle]
pub unsafe extern "C" fn dc_strbuilder_cat(
mut strbuilder: *mut dc_strbuilder_t,
mut text: *const libc::c_char,

View File

@@ -19,7 +19,6 @@ pub unsafe extern "C" fn dc_exactly_one_bit_set(mut v: libc::c_int) -> libc::c_i
}
/* string tools */
/* dc_strdup() returns empty string if NULL is given, never returns NULL (exits on errors) */
#[no_mangle]
pub unsafe extern "C" fn dc_strdup(mut s: *const libc::c_char) -> *mut libc::c_char {
let mut ret: *mut libc::c_char = 0 as *mut libc::c_char;
if !s.is_null() {