Skip to content

Commit e8a6f53

Browse files
committed
Change trailing prctl arguments to c_ulong
1 parent 34bcc8e commit e8a6f53

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

library/std/src/sys/unix/thread.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ impl Thread {
122122
// pthread wrapper only appeared in glibc 2.12, so we use syscall
123123
// directly.
124124
unsafe {
125-
libc::prctl(PR_SET_NAME, name.as_ptr(), 0, 0, 0);
125+
libc::prctl(
126+
PR_SET_NAME,
127+
name.as_ptr(),
128+
0 as libc::c_ulong,
129+
0 as libc::c_ulong,
130+
0 as libc::c_ulong,
131+
);
126132
}
127133
}
128134

0 commit comments

Comments
 (0)