Is this code redundent?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm now reading the source code of pjsip, and I found that in pjmedia/transport_udp.c, It seems line 509 and line 511 do the same thing:

508

509             pj_memcpy(&udp->rem_rtcp_addr, &udp->rem_rtp_addr,
510                   sizeof(pj_sockaddr));
511             pj_sockaddr_copy_addr(&udp->rem_rtcp_addr,
512                           &udp->rem_rtp_addr);

513             port = (pj_uint16_t)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150526/5f56c452/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux