Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/ftp_put_descriptor.c

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

revision 49 by hirohitohigashi, Sat Feb 28 15:03:18 2009 UTC revision 50 by hirohitohigashi, Wed Dec 2 15:13:30 2009 UTC
# Line 39  int ftp_put_descriptor( LIBOFTP *ftp, co Line 39  int ftp_put_descriptor( LIBOFTP *ftp, co
39  {  {
40      int data_socket;      int data_socket;
41    
42        if( ftp->socket < 0 ) return LIBOFTP_ERROR;
43    
44      if( ftp->flag_passive ) {      if( ftp->flag_passive ) {
45          data_socket = ftp_getready_pasv( ftp, "STOR", fname );          data_socket = ftp_getready_pasv( ftp, "STOR", fname );
46      } else {      } else {
# Line 61  int ftp_append_descriptor( LIBOFTP *ftp, Line 63  int ftp_append_descriptor( LIBOFTP *ftp,
63  {  {
64      int data_socket;      int data_socket;
65    
66        if( ftp->socket < 0 ) return LIBOFTP_ERROR;
67    
68      if( ftp->flag_passive ) {      if( ftp->flag_passive ) {
69          data_socket = ftp_getready_pasv( ftp, "APPE", fname );          data_socket = ftp_getready_pasv( ftp, "APPE", fname );
70      } else {      } else {
# Line 88  int ftp_put_descriptor_close( LIBOFTP *f Line 92  int ftp_put_descriptor_close( LIBOFTP *f
92       */       */
93      close( desc );      close( desc );
94    
95        if( ftp->socket < 0 ) return LIBOFTP_ERROR;
96    
97      /*      /*
98       * receive response.       * receive response.
99       */       */

Legend:
Removed from v.49  
changed lines
  Added in v.50

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