Skip to content

Commit

Permalink
Merge pull request #9148 from Blarse/incompat-pointer-pr
Browse files Browse the repository at this point in the history
Fix incompatible pointer type 'struct sockaddr_storage *'
  • Loading branch information
bmk authored Jan 15, 2025
2 parents 6e3b85b + d35cb2b commit 8b4a99c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions erts/emulator/drivers/common/inet_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -3519,7 +3519,7 @@ static int sctp_parse_async_event

i = LOAD_ATOM (spec, i, am_sctp_paddr_change);
PUSH_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();
i = load_inet_get_address(spec, i, desc, &sptr->spc_aaddr);
i = load_inet_get_address(spec, i, desc, (struct sockaddr_storage *)&sptr->spc_aaddr);
POP_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();

switch (sptr->spc_state)
Expand Down Expand Up @@ -9608,7 +9608,7 @@ static int load_paddrinfo (ErlDrvTermData * spec, int i,
i = LOAD_ATOM (spec, i, am_sctp_paddrinfo);
i = LOAD_ASSOC_ID (spec, i, pai->spinfo_assoc_id);
PUSH_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();
i = load_inet_get_address(spec, i, desc, &pai->spinfo_address);
i = load_inet_get_address(spec, i, desc, (struct sockaddr_storage *)&pai->spinfo_address);
POP_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();
switch(pai->spinfo_state)
{
Expand Down Expand Up @@ -10224,7 +10224,7 @@ static ErlDrvSSizeT sctp_fill_opts(inet_descriptor* desc,
}
i = LOAD_ASSOC_ID (spec, i, sp.sspp_assoc_id);
PUSH_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();
i = load_inet_get_address(spec, i, desc, &sp.sspp_addr);
i = load_inet_get_address(spec, i, desc, (struct sockaddr_storage *)&sp.sspp_addr);
POP_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();
i = LOAD_TUPLE (spec, i, 3);
i = LOAD_TUPLE (spec, i, 2);
Expand Down Expand Up @@ -10286,7 +10286,7 @@ static ErlDrvSSizeT sctp_fill_opts(inet_descriptor* desc,
i = LOAD_ATOM (spec, i, am_sctp_paddrparams);
i = LOAD_ASSOC_ID (spec, i, ap.spp_assoc_id);
PUSH_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();
i = load_inet_get_address(spec, i, desc, &ap.spp_address);
i = load_inet_get_address(spec, i, desc, (struct sockaddr_storage *)&ap.spp_address);
POP_SUPPRESS_ADDRESS_OF_PACKED_MEMBER();
i = LOAD_INT (spec, i, ap.spp_hbinterval);
i = LOAD_INT (spec, i, ap.spp_pathmaxrxt);
Expand Down

0 comments on commit 8b4a99c

Please sign in to comment.