Skip to content

Commit 56e42e7

Browse files
committed
The type of eventfd's 'initval' argument should be unsigned.
1 parent fb83189 commit 56e42e7

File tree

1 file changed

+1
-1
lines changed
  • src/unix/notbsd/linux/other

1 file changed

+1
-1
lines changed

src/unix/notbsd/linux/other/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ extern {
408408
serv: *mut ::c_char,
409409
sevlen: ::socklen_t,
410410
flags: ::c_int) -> ::c_int;
411-
pub fn eventfd(init: ::c_int, flags: ::c_int) -> ::c_int;
411+
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
412412
pub fn ptrace(request: ::c_uint, ...) -> ::c_long;
413413
}
414414

0 commit comments

Comments
 (0)