summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/errno.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errno.rs b/src/errno.rs
index 0bdfaabf..60ccfde2 100644
--- a/src/errno.rs
+++ b/src/errno.rs
@@ -1,6 +1,6 @@
use std::fmt;
use std::os::errno;
-use std::num::from_int;
+use std::num::from_uint;
use libc::c_int;
pub use self::consts::*;
@@ -14,7 +14,7 @@ pub struct SysError {
impl SysError {
pub fn last() -> SysError {
- match from_int(errno()) {
+ match from_uint(errno()) {
Some(no) => SysError::new(no),
_ => SysError::new(UnknownErrno)
}