]> git.sesse.net Git - vlc/commitdiff
Code simplification
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 21 May 2005 18:13:38 +0000 (18:13 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 21 May 2005 18:13:38 +0000 (18:13 +0000)
modules/access/ftp.c

index e59221d65ebe5345e5014e52535fed728ea76709..4194a2ae3e4a186a0c22e5ca65d99df956fadbeb 100644 (file)
@@ -408,14 +408,8 @@ static int ftp_SendCommand( access_t *p_access, char *psz_fmt, ... )
     va_end( args );
 
     msg_Dbg( p_access, "ftp_SendCommand:\"%s\"", psz_cmd);
-    if( ( i_ret = net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL,
-                              "%s", psz_cmd ) ) > 0 )
-    {
-        i_ret = net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL,
-                            "\r\n" );
-    }
-
-    if( i_ret < 0 )
+    if( net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL, "%s\r\n",
+                    psz_cmd ) < 0 )
     {
         msg_Err( p_access, "failed to send command" );
         return VLC_EGENERIC;