summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoma Sokolov <sokolov.r.v@gmail.com>2015-02-17 16:51:19 +0300
committerCarl Lerche <me@carllerche.com>2015-02-19 08:38:51 -0800
commit0e361c0341f7ab60e21d2fda818e352de53ac510 (patch)
tree659a21dc263bfc624dcd347441e2ce5353d61647
parent19f3690627c45ab91ca849d1cb0c9781716c4367 (diff)
downloadnix-0e361c0341f7ab60e21d2fda818e352de53ac510.zip
Fix type mismatch: errno now i32
-rw-r--r--src/errno.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errno.rs b/src/errno.rs
index 973ece04..35809f9b 100644
--- a/src/errno.rs
+++ b/src/errno.rs
@@ -1,5 +1,5 @@
use std::os::errno;
-use std::num::from_uint;
+use std::num::from_i32;
pub use self::consts::*;
pub use self::consts::Errno::*;
@@ -19,7 +19,7 @@ macro_rules! impl_errno {
}
fn last() -> Errno {
- from_uint(errno()).unwrap_or(UnknownErrno)
+ from_i32(errno()).unwrap_or(UnknownErrno)
}
fn desc(errno: Errno) -> &'static str {