aboutsummaryrefslogtreecommitdiff
path: root/src/bio/mod.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-01-09 10:07:03 -0800
committerSteven Fackler <[email protected]>2015-01-09 10:07:03 -0800
commit74bba7d58a6725d70e2ba4c8388c1e26fbc8cd8c (patch)
treee26eea29b731b0c6df36847923e3a51b5bb048a4 /src/bio/mod.rs
parentMerge pull request #139 from vhbit/up-master (diff)
parentUpdate to rust master (diff)
downloadrust-openssl-74bba7d58a6725d70e2ba4c8388c1e26fbc8cd8c.tar.xz
rust-openssl-74bba7d58a6725d70e2ba4c8388c1e26fbc8cd8c.zip
Merge pull request #140 from alexcrichton/update
Update to rust master
Diffstat (limited to 'src/bio/mod.rs')
-rw-r--r--src/bio/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bio/mod.rs b/src/bio/mod.rs
index 7172b009..a354ed86 100644
--- a/src/bio/mod.rs
+++ b/src/bio/mod.rs
@@ -58,7 +58,7 @@ impl MemBio {
}
impl Reader for MemBio {
- fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> {
+ fn read(&mut self, buf: &mut [u8]) -> IoResult<usize> {
let ret = unsafe {
ffi::BIO_read(self.bio, buf.as_ptr() as *mut c_void,
buf.len() as c_int)
@@ -81,7 +81,7 @@ impl Reader for MemBio {
};
Err(err)
} else {
- Ok(ret as uint)
+ Ok(ret as usize)
}
}
}
@@ -92,7 +92,7 @@ impl Writer for MemBio {
ffi::BIO_write(self.bio, buf.as_ptr() as *const c_void,
buf.len() as c_int)
};
- if buf.len() != ret as uint {
+ if buf.len() != ret as usize {
Err(IoError {
kind: OtherIoError,
desc: "MemBio write error",