Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/sub.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 30 by hirohitohigashi, Sat Feb 28 13:03:02 2009 UTC revision 36 by hirohitohigashi, Sun Mar 1 13:40:55 2009 UTC
# Line 157  int ftp_receive_response( LIBOFTP *ftp, Line 157  int ftp_receive_response( LIBOFTP *ftp,
157       * receive 1st line.       * receive 1st line.
158       */       */
159      if( (n = recv_line( ftp->socket, str1, sizeof(str1), 0 )) < 0 ) {      if( (n = recv_line( ftp->socket, str1, sizeof(str1), 0 )) < 0 ) {
160            if( errno == EAGAIN ) {
161                return LIBOFTP_ERROR_TIMEOUT;
162            }
163          copy_strerror();          copy_strerror();
164          return LIBOFTP_ERROR_OS;          return LIBOFTP_ERROR_OS;
165      }      }
# Line 172  int ftp_receive_response( LIBOFTP *ftp, Line 175  int ftp_receive_response( LIBOFTP *ftp,
175      if( str1[3] == '-' ) {      if( str1[3] == '-' ) {
176          while( 1 ) {          while( 1 ) {
177              if( (n = recv_line( ftp->socket, str1, sizeof(str1), 0 )) < 0 ) {              if( (n = recv_line( ftp->socket, str1, sizeof(str1), 0 )) < 0 ) {
178                    if( errno == EAGAIN ) {
179                        return LIBOFTP_ERROR_TIMEOUT;
180                    }
181                  copy_strerror();                  copy_strerror();
182                  return LIBOFTP_ERROR_OS;                  return LIBOFTP_ERROR_OS;
183              }              }

Legend:
Removed from v.30  
changed lines
  Added in v.36

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26