]> git.lizzy.rs Git - rust.git/commitdiff
Change trailing prctl arguments to c_ulong
authorBen Kimock <kimockb@gmail.com>
Wed, 6 Apr 2022 21:11:50 +0000 (17:11 -0400)
committerBen Kimock <kimockb@gmail.com>
Wed, 6 Apr 2022 21:11:50 +0000 (17:11 -0400)
library/std/src/sys/unix/thread.rs

index 967d3b2bd9fe4078daf129683f5d632dee75b8c9..d191e1fe7a650ffe0be849958ceac2f5b61c0f59 100644 (file)
@@ -122,7 +122,13 @@ pub fn set_name(name: &CStr) {
         // pthread wrapper only appeared in glibc 2.12, so we use syscall
         // directly.
         unsafe {
-            libc::prctl(PR_SET_NAME, name.as_ptr(), 0, 0, 0);
+            libc::prctl(
+                PR_SET_NAME,
+                name.as_ptr(),
+                0 as libc::c_ulong,
+                0 as libc::c_ulong,
+                0 as libc::c_ulong,
+            );
         }
     }