other cast as per @dignifiedquire comment -- also convert some logging along the way

This commit is contained in:
holger krekel
2019-07-10 11:54:29 +02:00
parent 6d17de05b2
commit b810b5a8f8
2 changed files with 7 additions and 18 deletions

View File

@@ -437,25 +437,13 @@ pub unsafe fn dc_handle_securejoin_handshake(
let invitenumber: *const libc::c_char;
invitenumber = lookup_field(mimeparser, "Secure-Join-Invitenumber");
if invitenumber.is_null() {
warn!(
context,
0,
"Secure-join denied (invitenumber missing).",
);
warn!(context, 0, "Secure-join denied (invitenumber missing).",);
current_block = 4378276786830486580;
} else if dc_token_exists(context, DC_TOKEN_INVITENUMBER, invitenumber) == 0i32 {
warn!(
context,
0,
"Secure-join denied (bad invitenumber).",
);
warn!(context, 0, "Secure-join denied (bad invitenumber).",);
current_block = 4378276786830486580;
} else {
info!(
context,
0,
"Secure-join requested.",
);
info!(context, 0, "Secure-join requested.",);
context.call_cb(
Event::SECUREJOIN_INVITER_PROGRESS,
contact_id as uintptr_t,