Mercurial > libavformat.hg
changeset 2751:d174591c742b libavformat
Remove the useless variable "my_addr1"
author | lucabe |
---|---|
date | Thu, 15 Nov 2007 13:41:51 +0000 |
parents | b3a11a0966af |
children | 9f60c60d8d57 |
files | udp.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/udp.c Thu Nov 15 13:34:56 2007 +0000 +++ b/udp.c Thu Nov 15 13:41:51 2007 +0000 @@ -294,7 +294,7 @@ const char *p; char buf[256]; #ifndef CONFIG_IPV6 - struct sockaddr_in my_addr, my_addr1; + struct sockaddr_in my_addr; int len; #endif @@ -358,9 +358,9 @@ if (bind(udp_fd,(struct sockaddr *)&my_addr, sizeof(my_addr)) < 0) goto fail; - len = sizeof(my_addr1); - getsockname(udp_fd, (struct sockaddr *)&my_addr1, &len); - s->local_port = ntohs(my_addr1.sin_port); + len = sizeof(my_addr); + getsockname(udp_fd, (struct sockaddr *)&my_addr, &len); + s->local_port = ntohs(my_addr.sin_port); #else udp_fd = udp_ipv6_set_local(h); if (udp_fd < 0)