Commit d4936869 authored by Luca Abeni's avatar Luca Abeni

Remove the useless variable "my_addr1"

Originally committed as revision 11037 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 882d00f2
...@@ -294,7 +294,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) ...@@ -294,7 +294,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
const char *p; const char *p;
char buf[256]; char buf[256];
#ifndef CONFIG_IPV6 #ifndef CONFIG_IPV6
struct sockaddr_in my_addr, my_addr1; struct sockaddr_in my_addr;
int len; int len;
#endif #endif
...@@ -358,9 +358,9 @@ static int udp_open(URLContext *h, const char *uri, int flags) ...@@ -358,9 +358,9 @@ static int udp_open(URLContext *h, const char *uri, int flags)
if (bind(udp_fd,(struct sockaddr *)&my_addr, sizeof(my_addr)) < 0) if (bind(udp_fd,(struct sockaddr *)&my_addr, sizeof(my_addr)) < 0)
goto fail; goto fail;
len = sizeof(my_addr1); len = sizeof(my_addr);
getsockname(udp_fd, (struct sockaddr *)&my_addr1, &len); getsockname(udp_fd, (struct sockaddr *)&my_addr, &len);
s->local_port = ntohs(my_addr1.sin_port); s->local_port = ntohs(my_addr.sin_port);
#else #else
udp_fd = udp_ipv6_set_local(h); udp_fd = udp_ipv6_set_local(h);
if (udp_fd < 0) if (udp_fd < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment