Skip to content

Commit

Permalink
Constify function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA committed Feb 2, 2024
1 parent cc993d4 commit 4801970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/unix_c/unix_getaddrinfo_job.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ struct job_getaddrinfo {
char data[];
};

static value cst_to_constr(int n, int *tbl, int size, int deflt)
static value cst_to_constr(int n, const int *tbl, int size, int deflt)
{
int i;
for (i = 0; i < size; i++)
if (n == tbl[i]) return Val_int(i);
return Val_int(deflt);
}

static value convert_addrinfo(struct addrinfo *a)
static value convert_addrinfo(const struct addrinfo *a)
{
CAMLparam0();
CAMLlocal3(vres, vaddr, vcanonname);
Expand Down

0 comments on commit 4801970

Please sign in to comment.