Auto merge of #79196 - RalfJung:syscall, r=m-ou-se

unix/weak: pass arguments to syscall at the given type

Given that we know the type the argument should have, it seems a bit strange not to use that information.

r? `@m-ou-se` `@cuviper`
This commit is contained in:
bors 2020-11-20 08:46:42 +00:00
commit 172acf8f61

View File

@ -135,7 +135,7 @@ macro_rules! syscall {
} else {
syscall(
concat_idents!(SYS_, $name),
$($arg_name as c_long),*
$($arg_name),*
) as $ret
}
}