Fix set_read_ahead signature

This commit is contained in:
Steven Fackler 2016-10-15 16:53:10 -07:00
parent 872fcfc3d5
commit 6ea551dc82
1 changed files with 2 additions and 2 deletions

View File

@ -407,9 +407,9 @@ impl<'a> SslContextRef<'a> {
}
}
pub fn set_read_ahead(&mut self, m: u32) {
pub fn set_read_ahead(&mut self, read_ahead: bool) {
unsafe {
ffi::SSL_CTX_set_read_ahead(self.as_ptr(), m as c_long);
ffi::SSL_CTX_set_read_ahead(self.as_ptr(), read_ahead as c_long);
}
}