summaryrefslogtreecommitdiff
path: root/src/errno.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errno.rs')
-rw-r--r--src/errno.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errno.rs b/src/errno.rs
index 912fb94f..0c5b0eda 100644
--- a/src/errno.rs
+++ b/src/errno.rs
@@ -47,7 +47,7 @@ fn clear() {
/// Returns the platform-specific value of errno
pub fn errno() -> i32 {
- unsafe { (*errno_location()) as i32 }
+ unsafe { *errno_location() }
}
impl Errno {