Skip to content

Commit

Permalink
sip/transp: remove HAVE_INET6
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 22, 2024
1 parent 77c28e3 commit 31f1f46
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,6 @@ static int ws_conn_send(struct sip_connqent **qentp, struct sip *sip,
}


#if HAVE_INET6
static int dst_set_scopeid(struct sip *sip, struct sa *dst, enum sip_transp tp)
{
struct sa laddr;
Expand All @@ -1118,7 +1117,6 @@ static int dst_set_scopeid(struct sip *sip, struct sa *dst, enum sip_transp tp)
sa_set_scopeid(dst, sa_scopeid(&laddr));
return 0;
}
#endif


int sip_transp_init(struct sip *sip, uint32_t sz)
Expand Down Expand Up @@ -1446,11 +1444,9 @@ int sip_transp_send(struct sip_connqent **qentp, struct sip *sip, void *sock,
return EINVAL;

sa_cpy(&dsttmp, dst);
#if HAVE_INET6
err = dst_set_scopeid(sip, &dsttmp, tp);
if (err)
return err;
#endif

switch (tp) {

Expand Down

0 comments on commit 31f1f46

Please sign in to comment.