about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-11-19 10:09:40 +0100
committerRalf Jung <post@ralfj.de>2020-11-20 00:23:05 +0100
commitd8d763da86e6fcc7736920a7659256eb0b37cefb (patch)
treef482da71ec53cff39027d5318f4e89f2d749bd01
parentbf469eb6c20ccea05400a1942c70343f36705e1c (diff)
downloadrust-d8d763da86e6fcc7736920a7659256eb0b37cefb.tar.gz
rust-d8d763da86e6fcc7736920a7659256eb0b37cefb.zip
unix/weak: pass arguments to syscall at the given type
-rw-r--r--library/std/src/sys/unix/weak.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/weak.rs b/library/std/src/sys/unix/weak.rs
index 53d95dca4cd..e93a4972caa 100644
--- a/library/std/src/sys/unix/weak.rs
+++ b/library/std/src/sys/unix/weak.rs
@@ -135,7 +135,7 @@ macro_rules! syscall {
             } else {
                 syscall(
                     concat_idents!(SYS_, $name),
-                    $($arg_name as c_long),*
+                    $($arg_name),*
                 ) as $ret
             }
         }