Skip to content

Commit 5978227

Browse files
MisterDAsmorimoto
authored andcommitted
Constify function parameters
Signed-off-by: Antonin Décimo <[email protected]>
1 parent 7485bbc commit 5978227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/unix_c/unix_getaddrinfo_job.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ struct job_getaddrinfo {
2929
char data[];
3030
};
3131

32-
static value cst_to_constr(int n, int *tbl, int size, int deflt)
32+
static value cst_to_constr(int n, const int *tbl, int size, int deflt)
3333
{
3434
int i;
3535
for (i = 0; i < size; i++)
3636
if (n == tbl[i]) return Val_int(i);
3737
return Val_int(deflt);
3838
}
3939

40-
static value convert_addrinfo(struct addrinfo *a)
40+
static value convert_addrinfo(const struct addrinfo *a)
4141
{
4242
CAMLparam0();
4343
CAMLlocal3(vres, vaddr, vcanonname);

0 commit comments

Comments
 (0)