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

Diff for /src/usr.bin/ftp/fetch.c between version 1.49 and 1.50

version 1.49, 2004/02/28 20:08:38 version 1.50, 2004/07/20 03:50:25
Line 96 
Line 96 
  * Returns -1 on failure, 0 on success   * Returns -1 on failure, 0 on success
  */   */
 static int  static int
 url_get(origline, proxyenv, outfile)  url_get(const char *origline, const char *proxyenv, const char *outfile)
         const char *origline;  
         const char *proxyenv;  
         const char *outfile;  
 {  {
         struct addrinfo hints, *res0, *res;          struct addrinfo hints, *res0, *res;
         int error;          int error;
Line 566 
Line 563 
  * Abort a http retrieval   * Abort a http retrieval
  */   */
 void  void
 aborthttp(notused)  aborthttp(int notused)
         int notused;  
 {  {
   
         alarmtimer(0);          alarmtimer(0);
Line 580 
Line 576 
  * Abort a http retrieval   * Abort a http retrieval
  */   */
 void  void
 abortfile(notused)  abortfile(int notused)
         int notused;  
 {  {
   
         alarmtimer(0);          alarmtimer(0);
Line 605 
Line 600 
  * Otherwise, 0 is returned if all files retrieved successfully.   * Otherwise, 0 is returned if all files retrieved successfully.
  */   */
 int  int
 auto_fetch(argc, argv, outfile)  auto_fetch(int argc, char *argv[], char *outfile)
         int argc;  
         char *argv[];  
         char *outfile;  
 {  {
         char *xargv[5];          char *xargv[5];
         char *cp, *line, *host, *dir, *file, *portnum;          char *cp, *line, *host, *dir, *file, *portnum;
Line 871 
Line 863 
 }  }
   
 char *  char *
 urldecode(str)  urldecode(const char *str)
         const char *str;  
 {  {
         char *ret;          char *ret;
         char c;          char c;
Line 903 
Line 894 
 }  }
   
 char  char
 hextochar(str)  hextochar(const char *str)
         const char *str;  
 {  {
         char c, ret;          char c, ret;
   
Line 926 
Line 916 
 }  }
   
 int  int
 isurl(p)  isurl(const char *p)
         const char *p;  
 {  {
   
         if (strncasecmp(p, FTP_URL, sizeof(FTP_URL) - 1) == 0 ||          if (strncasecmp(p, FTP_URL, sizeof(FTP_URL) - 1) == 0 ||

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50