aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Perutka <[email protected]>2015-12-16 11:11:14 +0100
committerOndrej Perutka <[email protected]>2015-12-16 11:11:14 +0100
commit02d2230a76ec0ebd6d18cd75e5a51168ad376dbe (patch)
treed98ea9359a5e66e9c79e2a9f8f4a00266b3ce230
parentRustfmt (diff)
downloadrust-openssl-02d2230a76ec0ebd6d18cd75e5a51168ad376dbe.tar.xz
rust-openssl-02d2230a76ec0ebd6d18cd75e5a51168ad376dbe.zip
Fix regression of c_char type mismatches on ARM
-rw-r--r--openssl/src/ssl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 981b3bcd..183cf19d 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -951,7 +951,7 @@ impl Ssl {
return None;
}
- unsafe { String::from_utf8(CStr::from_ptr(name).to_bytes().to_vec()).ok() }
+ unsafe { String::from_utf8(CStr::from_ptr(name as *const _).to_bytes().to_vec()).ok() }
}
/// change the context corresponding to the current connection