[vlc-commits] network: remove shadow variable
Rémi Denis-Courmont
git at videolan.org
Sun Sep 21 10:40:03 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 18 18:09:20 2014 +0300| [4d626bb7cfb3aa8598cd0c63172b10b5272b94e6] | committer: Rémi Denis-Courmont
network: remove shadow variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d626bb7cfb3aa8598cd0c63172b10b5272b94e6
---
src/network/tcp.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/network/tcp.c b/src/network/tcp.c
index 083861d..7882a1d 100644
--- a/src/network/tcp.c
+++ b/src/network/tcp.c
@@ -135,7 +135,6 @@ int net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
}, *res;
int val = vlc_getaddrinfo (psz_realhost, i_realport, &hints, &res);
-
if (val)
{
msg_Err (p_this, "cannot resolve %s port %d : %s", psz_realhost,
@@ -161,8 +160,6 @@ int net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
if( connect( fd, ptr->ai_addr, ptr->ai_addrlen ) )
{
- int val;
-
if( net_errno != EINPROGRESS && net_errno != EINTR )
{
msg_Err( p_this, "connection failed: %s",
More information about the vlc-commits
mailing list