Skip to content

Commit bfc088d

Browse files
committed
Merge branch 'tim/c_char' into 'master'
fix: Replace *mut i8 by *mut c_char See merge request TankerHQ/sdk-rust!45
2 parents f2cdd51 + 6362ad5 commit bfc088d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ctanker.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub async unsafe fn register_identity(
167167
let fut = unsafe {
168168
CFuture::<c_void>::new(tanker_register_identity(ctanker, verification, &c_options))
169169
};
170-
let token_str_ptr = fut.await? as *mut i8;
170+
let token_str_ptr = fut.await? as *mut c_char;
171171
Ok(NonNull::new(token_str_ptr).map(|str_ptr| {
172172
let str = CStr::from_ptr(str_ptr.as_ptr())
173173
.to_str()
@@ -190,7 +190,7 @@ pub async unsafe fn verify_identity(
190190
let fut = unsafe {
191191
CFuture::<c_void>::new(tanker_verify_identity(ctanker, verification, &c_options))
192192
};
193-
let token_str_ptr = fut.await? as *mut i8;
193+
let token_str_ptr = fut.await? as *mut c_char;
194194
Ok(NonNull::new(token_str_ptr).map(|str_ptr| {
195195
let str = CStr::from_ptr(str_ptr.as_ptr())
196196
.to_str()
@@ -225,7 +225,7 @@ pub async unsafe fn set_verification_method(
225225
&c_options,
226226
))
227227
};
228-
let token_str_ptr = fut.await? as *mut i8;
228+
let token_str_ptr = fut.await? as *mut c_char;
229229
Ok(NonNull::new(token_str_ptr).map(|str_ptr| {
230230
let str = CStr::from_ptr(str_ptr.as_ptr())
231231
.to_str()

0 commit comments

Comments
 (0)