static int ftp_retrieve(FTPContext *s)

{

    char command[CONTROL_BUFFER_SIZE];

    const int retr_codes[] = {150, 550, 0}; /* 550 is incorrect code */



    snprintf(command, sizeof(command), "RETR %s\r\n", s->path);

    if (ftp_send_command(s, command, retr_codes, NULL) != 150)

        return AVERROR(EIO);



    s->state = DOWNLOADING;



    return 0;

}

static int ftp_retrieve(FTPContext *s)

{

    char command[CONTROL_BUFFER_SIZE];

    const int retr_codes[] = {150, 550, 0}; 



    snprintf(command, sizeof(command), "RETR %s\r\n", s->path);

    if (ftp_send_command(s, command, retr_codes, NULL) != 150)

        return AVERROR(EIO);



    s->state = DOWNLOADING;



    return 0;

}

static int FUNC_0(FTPContext *VAR_0)

{

    char VAR_1[CONTROL_BUFFER_SIZE];

    const int VAR_2[] = {150, 550, 0}; 



    snprintf(VAR_1, sizeof(VAR_1), "RETR %VAR_0\r\n", VAR_0->path);

    if (ftp_send_command(VAR_0, VAR_1, VAR_2, NULL) != 150)

        return AVERROR(EIO);



    VAR_0->state = DOWNLOADING;



    return 0;

}

static int FUNC_0(FTPContext *VAR_0)
{ char VAR_1[CONTROL_BUFFER_SIZE]; const int VAR_2[] = {150, 550, 0}; snprintf(VAR_1, sizeof(VAR_1), "RETR %VAR_0\r\n", VAR_0->path); if (ftp_send_command(VAR_0, VAR_1, VAR_2, NULL) != 150)
return AVERROR(EIO); VAR_0->state = DOWNLOADING; return 0; }