Develop and Download Open Source Software

Browse Subversion Repository

Diff of /tags/REL-2.1/ftp_delete.c

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

revision 21 by hirohitohigashi, Fri Feb 27 13:35:04 2009 UTC revision 22 by hirohitohigashi, Fri Feb 27 14:14:33 2009 UTC
# Line 45  int ftp_delete( LIBOFTP *ftp, const char Line 45  int ftp_delete( LIBOFTP *ftp, const char
45       */       */
46      snprintf( str1, sizeof(str1)-1, "DELE %s\r\n", fname );      snprintf( str1, sizeof(str1)-1, "DELE %s\r\n", fname );
47      if( ftp_send_command( ftp, str1 ) < 0 ) {      if( ftp_send_command( ftp, str1 ) < 0 ) {
48          DEBUGPRINT1( "pwd: command sending error. %s\n", str1 );          DEBUGPRINT1( "delete: command sending error. %s\n", str1 );
49          return -1;          return -1;
50      }      }
51    
52      if( (ret = ftp_receive_response( ftp, str1, sizeof(str1) )) != 250 ) {      /* 250: Requested file action okay, completed. */      if( (ret = ftp_receive_response( ftp, str1, sizeof(str1) )) != 250 ) {      /* 250: Requested file action okay, completed. */
53          DEBUGPRINT1( "pwd: command response error. %d\n", ret );          DEBUGPRINT1( "delete: command response error. %d\n", ret );
54          return -2;          return -2;
55      }      }
56    

Legend:
Removed from v.21  
changed lines
  Added in v.22

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