Skip to content

Commit c40f8e4

Browse files
committed
Remove const from FUTEX_OP
1 parent 7f9965c commit c40f8e4

File tree

1 file changed

+1
-1
lines changed
  • src/unix/linux_like/linux

1 file changed

+1
-1
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,7 @@ pub const FUTEX_OP_CMP_LE: ::c_int = 3;
34733473
pub const FUTEX_OP_CMP_GT: ::c_int = 4;
34743474
pub const FUTEX_OP_CMP_GE: ::c_int = 5;
34753475

3476-
pub const fn FUTEX_OP(op: ::c_int, oparg: ::c_int, cmp: ::c_int, cmparg: ::c_int) -> ::c_int {
3476+
pub fn FUTEX_OP(op: ::c_int, oparg: ::c_int, cmp: ::c_int, cmparg: ::c_int) -> ::c_int {
34773477
((op & 0xf) << 28) | ((cmp & 0xf) << 24) | ((oparg & 0xfff) << 12) | (cmparg & 0xfff)
34783478
}
34793479

0 commit comments

Comments
 (0)