[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/main.c between version 1.5 and 1.6

version 1.5, 1996/06/26 05:33:38 version 1.6, 1996/09/03 18:00:06
Line 52 
Line 52 
  */   */
 /*#include <sys/ioctl.h>*/  /*#include <sys/ioctl.h>*/
 #include <sys/types.h>  #include <sys/types.h>
   #include <sys/file.h>
 #include <sys/socket.h>  #include <sys/socket.h>
   #include <netinet/in.h>
   
 #include <arpa/ftp.h>  #include <arpa/ftp.h>
   
Line 168 
Line 170 
                                 ret = 1;                                  ret = 1;
                                 goto bail;                                  goto bail;
                         }                          }
                           if (!strncmp(host, "http://", strlen("http://"))) {
                                   http_fetch(host);
                                   goto bail;
                           }
                         if (strncmp(host, "ftp://", sizeof("ftp://")-1) == 0) {                          if (strncmp(host, "ftp://", sizeof("ftp://")-1) == 0) {
                                 host += sizeof("ftp://") - 1;                                  host += sizeof("ftp://") - 1;
                                 p = strchr(host, '/');                                  p = strchr(host, '/');
Line 218 
Line 223 
   
                         /* get ready for the next file */                          /* get ready for the next file */
 bail:  bail:
                         if (bufp)                          if (bufp) {
                                 free(bufp);                                  free(bufp);
                                   bufp = NULL;
                           }
                         if (connected)                          if (connected)
                                 disconnect(1, xargv);                                  disconnect(1, xargv);
                         --argc;                          --argc;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6