Develop and Download Open Source Software

Browse Subversion Repository

Diff of /tags/REL-2.2/ftp_quit.c

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

revision 46 by hirohitohigashi, Wed Mar 4 08:27:07 2009 UTC revision 50 by hirohitohigashi, Wed Dec 2 15:13:30 2009 UTC
# Line 39  int ftp_quit( LIBOFTP *ftp ) Line 39  int ftp_quit( LIBOFTP *ftp )
39      char str1[] = "QUIT\r\n";      char str1[] = "QUIT\r\n";
40      int res;      int res;
41    
42        if( ftp->socket < 0 ) return LIBOFTP_ERROR;
43    
44      /*      /*
45       * send QUIT command       * send QUIT command
46       */       */
# Line 61  int ftp_quit( LIBOFTP *ftp ) Line 63  int ftp_quit( LIBOFTP *ftp )
63       */       */
64  CLOSE:  CLOSE:
65      close( ftp->socket );      close( ftp->socket );
66      ftp->socket = 0;      ftp->socket = -1;
67    
68      return res;      return res;
69  }  }

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

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