Skip to content

Commit

Permalink
luv_unix: don't refer to module Result
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Apr 13, 2023
1 parent 0b8496b commit 776a767
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unix/luv_unix.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ struct
let storage = Ctypes.(raw_address_of_ptr (to_voidp (addr os_fd))) in
from_unix_helper unix_fd storage;
if C.Functions.Os_fd.is_invalid_handle_value os_fd then
Result.Error `EBADF
Error `EBADF
else
Result.Ok os_fd
Ok os_fd

external to_unix_helper : nativeint -> Unix.file_descr =
"luv_os_fd_to_unix_fd"
Expand All @@ -43,9 +43,9 @@ struct
let storage = Ctypes.(raw_address_of_ptr (to_voidp (addr os_socket))) in
from_unix_helper unix_fd storage;
if C.Functions.Os_fd.is_invalid_socket_value os_socket then
Result.Error `EBADF
Error `EBADF
else
Result.Ok os_socket
Ok os_socket

external to_unix_helper : nativeint -> Unix.file_descr =
"luv_os_socket_to_unix_fd"
Expand Down

0 comments on commit 776a767

Please sign in to comment.