Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/ftp_type.c

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

revision 31 by hirohitohigashi, Sat Feb 28 13:12:23 2009 UTC revision 50 by hirohitohigashi, Wed Dec 2 15:13:30 2009 UTC
# Line 44  int ftp_type( LIBOFTP *ftp, const char * Line 44  int ftp_type( LIBOFTP *ftp, const char *
44      char str1[256];      char str1[256];
45      int res;      int res;
46    
47        if( ftp->socket < 0 ) return LIBOFTP_ERROR;
48    
49      if( strcmp( type, "ascii" ) == 0 ) {      if( strcmp( type, "ascii" ) == 0 ) {
50          snprintf( str1, sizeof(str1)-1, "TYPE A\r\n" );          snprintf( str1, sizeof(str1)-1, "TYPE A\r\n" );
51          ftp->data_type = ASCII;          ftp->data_type = ASCII;

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

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