about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-31 16:20:09 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-31 17:39:24 -0700
commit72f59732d7974767650abfc58f8287212e5a1fba (patch)
treefbb20c45e460c82a79f86ded0fa59c0ada501c62 /src/libstd/sys
parent50b3ecf3bcc2e39a7a42e7f4b49f19398d5cc681 (diff)
downloadrust-72f59732d7974767650abfc58f8287212e5a1fba.tar.gz
rust-72f59732d7974767650abfc58f8287212e5a1fba.zip
Test fixes and rebase conflicts, round 3
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/fs2.rs2
-rw-r--r--src/libstd/sys/windows/c.rs2
-rw-r--r--src/libstd/sys/windows/os.rs2
-rw-r--r--src/libstd/sys/windows/stdio.rs5
4 files changed, 5 insertions, 6 deletions
diff --git a/src/libstd/sys/unix/fs2.rs b/src/libstd/sys/unix/fs2.rs
index 314d694f66a..c0426af051b 100644
--- a/src/libstd/sys/unix/fs2.rs
+++ b/src/libstd/sys/unix/fs2.rs
@@ -277,7 +277,7 @@ impl File {
 
 fn cstr(path: &Path) -> io::Result<CString> {
     path.as_os_str().to_cstring().ok_or(
-        io::Error::new(io::ErrorKind::InvalidInput, "path contained a null", None))
+        io::Error::new(io::ErrorKind::InvalidInput, "path contained a null"))
 }
 
 impl FromInner<c_int> for File {
diff --git a/src/libstd/sys/windows/c.rs b/src/libstd/sys/windows/c.rs
index b930e35c064..e74de595f97 100644
--- a/src/libstd/sys/windows/c.rs
+++ b/src/libstd/sys/windows/c.rs
@@ -433,7 +433,7 @@ extern "system" {
                             TokenHandle: *mut libc::HANDLE) -> libc::BOOL;
     pub fn GetCurrentProcess() -> libc::HANDLE;
     pub fn GetStdHandle(which: libc::DWORD) -> libc::HANDLE;
-    pub fn ExitProcess(uExitCode: libc::UINT) -> !;
+    pub fn ExitProcess(uExitCode: libc::c_uint) -> !;
 }
 
 #[link(name = "userenv")]
diff --git a/src/libstd/sys/windows/os.rs b/src/libstd/sys/windows/os.rs
index f98c39cfad0..d5843a2f998 100644
--- a/src/libstd/sys/windows/os.rs
+++ b/src/libstd/sys/windows/os.rs
@@ -382,5 +382,5 @@ pub fn home_dir() -> Option<PathBuf> {
 }
 
 pub fn exit(code: i32) -> ! {
-    unsafe { libc::ExitProcess(code as libc::UINT) }
+    unsafe { c::ExitProcess(code as libc::c_uint) }
 }
diff --git a/src/libstd/sys/windows/stdio.rs b/src/libstd/sys/windows/stdio.rs
index d1bff0e135d..91f6f328ff6 100644
--- a/src/libstd/sys/windows/stdio.rs
+++ b/src/libstd/sys/windows/stdio.rs
@@ -41,7 +41,7 @@ fn get(handle: libc::DWORD) -> io::Result<Output> {
         Err(io::Error::last_os_error())
     } else if handle.is_null() {
         Err(io::Error::new(io::ErrorKind::Other,
-                           "no stdio handle available for this process", None))
+                           "no stdio handle available for this process"))
     } else {
         let ret = NoClose::new(handle);
         let mut out = 0;
@@ -160,6 +160,5 @@ impl Drop for NoClose {
 }
 
 fn invalid_encoding() -> io::Error {
-    io::Error::new(io::ErrorKind::InvalidInput, "text was not valid unicode",
-                   None)
+    io::Error::new(io::ErrorKind::InvalidInput, "text was not valid unicode")
 }