Skip to content

Commit 7fa2412

Browse files
committed
Fix shadowing of variable name, harmless sofar
Luckly this had no effect until now.
1 parent f1ce2d7 commit 7fa2412

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

lib/iomux_stubs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ caml_iomux_ppoll(value v_fds, value v_nfds, value v_timo, value v_sigmask)
100100
#undef S_IN_NS
101101

102102
#define pollfd_of_index(vfds, vindex) \
103-
((struct pollfd *)Caml_ba_data_val(vfds) + (Int_val (v_index)))
103+
((struct pollfd *)Caml_ba_data_val(vfds) + (Int_val (vindex)))
104104

105105
value /* noalloc */
106106
caml_iomux_poll_set_index(value v_fds, value v_index, value v_fd, value v_events)

lib/poll.ml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
(*
2+
* Copyright (c) 2023 Christiano Haesbaert <[email protected]>
3+
*
4+
* Permission to use, copy, modify, and distribute this software for any
5+
* purpose with or without fee is hereby granted, provided that the above
6+
* copyright notice and this permission notice appear in all copies.
7+
*
8+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15+
*)
16+
117
open Util
218

319
type buffer = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

0 commit comments

Comments
 (0)