Update orbutils, fix warnings

This commit is contained in:
Jeremy Soller 2016-11-17 14:23:41 -07:00
parent 1f28ec72b7
commit 35e9253365
2 changed files with 4 additions and 6 deletions

View file

@ -250,7 +250,7 @@ pub fn clone(flags: usize, stack_base: usize) -> Result<ContextId> {
// If not cloning files, dup to get a new number from scheme
// This has to be done outside the context lock to prevent deadlocks
if flags & CLONE_FILES == 0 {
for (fd, mut file_option) in files.lock().iter_mut().enumerate() {
for (_fd, mut file_option) in files.lock().iter_mut().enumerate() {
let new_file_option = if let Some(file) = *file_option {
let result = {
let scheme = {
@ -269,8 +269,7 @@ pub fn clone(flags: usize, stack_base: usize) -> Result<ContextId> {
event: None,
})
},
Err(err) => {
println!("clone: failed to dup {}: {:?}", fd, err);
Err(_err) => {
None
}
}
@ -709,8 +708,7 @@ pub fn exec(path: &[u8], arg_ptrs: &[[usize; 2]]) -> Result<usize> {
event: None,
})
},
Err(err) => {
println!("exec: failed to dup {}: {:?}", fd, err);
Err(_err) => {
None
}
}

@ -1 +1 @@
Subproject commit 6d183f68e2519a86e4f69efaacf80d7fc78a59bc
Subproject commit 8187b2aa0bfb202fd52a4bac5adae4217c254e7e