Commit bd988556 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Code simplification

parent b252ac5c
...@@ -408,14 +408,8 @@ static int ftp_SendCommand( access_t *p_access, char *psz_fmt, ... ) ...@@ -408,14 +408,8 @@ static int ftp_SendCommand( access_t *p_access, char *psz_fmt, ... )
va_end( args ); va_end( args );
msg_Dbg( p_access, "ftp_SendCommand:\"%s\"", psz_cmd); msg_Dbg( p_access, "ftp_SendCommand:\"%s\"", psz_cmd);
if( ( i_ret = net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL, if( net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL, "%s\r\n",
"%s", psz_cmd ) ) > 0 ) psz_cmd ) < 0 )
{
i_ret = net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL,
"\r\n" );
}
if( i_ret < 0 )
{ {
msg_Err( p_access, "failed to send command" ); msg_Err( p_access, "failed to send command" );
return VLC_EGENERIC; return VLC_EGENERIC;
......
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