aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-11-15 13:41:51 +0000
committerLuca Abeni <lucabe72@email.it>2007-11-15 13:41:51 +0000
commitd4936869ff550d4325be44cb6b1f1ab1a19faee5 (patch)
tree93ddddf9a6ec3347ebdd5438b18a12c20bae16b7 /libavformat/udp.c
parent882d00f27d7318b7542dd41c360c491281638e2c (diff)
downloadffmpeg-d4936869ff550d4325be44cb6b1f1ab1a19faee5.tar.gz
Remove the useless variable "my_addr1"
Originally committed as revision 11037 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 71dd5bf069..6d44fdf3bf 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -294,7 +294,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
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 @@ static int udp_open(URLContext *h, const char *uri, int flags)
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)