From cb0898df37374ac99b56d40f6e933a8c4bb4cec8 Mon Sep 17 00:00:00 2001 From: Gleb Kozyrev Date: Wed, 21 Jan 2015 18:33:48 +0200 Subject: Bring ffi definitions closer to the originals Add missing return types and fix imprecise type translations. Repair the fallout in the openssl crate. --- src/crypto/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crypto/hash.rs') diff --git a/src/crypto/hash.rs b/src/crypto/hash.rs index 602a7d08..638a2254 100644 --- a/src/crypto/hash.rs +++ b/src/crypto/hash.rs @@ -84,7 +84,7 @@ impl Hasher { /// Update this hasher with more input bytes pub fn update(&mut self, data: &[u8]) { unsafe { - ffi::EVP_DigestUpdate(self.ctx.ptr, data.as_ptr(), data.len() as c_uint) + ffi::EVP_DigestUpdate(self.ctx.ptr, data.as_ptr(), data.len() as c_uint); } } -- cgit v1.2.3