[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.43 and 1.44

version 1.43, 2003/02/17 18:51:11 version 1.44, 2003/03/10 06:20:10
Line 107 
Line 107 
         volatile int s, out;          volatile int s, out;
         size_t len;          size_t len;
         char *cp, *ep, *portnum, *path;          char *cp, *ep, *portnum, *path;
         char pbuf[NI_MAXSERV];          char pbuf[NI_MAXSERV], hbuf[NI_MAXHOST];
         const char * volatile savefile;          const char * volatile savefile;
         char *line, *host, *port, *buf;          char *line, *host, *port, *buf;
         char * volatile proxy;          char * volatile proxy;
Line 309 
Line 309 
   
         s = -1;          s = -1;
         for (res = res0; res; res = res->ai_next) {          for (res = res0; res; res = res->ai_next) {
                 getnameinfo(res->ai_addr, res->ai_addrlen, pbuf, sizeof(pbuf),                  if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
                     NULL, 0, NI_NUMERICHOST);                      sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
                           strlcpy(hbuf, "(unknown)", sizeof(hbuf));
                 if (verbose)                  if (verbose)
                         fprintf(ttyout, "Trying %s...\n", pbuf);                          fprintf(ttyout, "Trying %s...\n", hbuf);
   
                 s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);                  s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
                 if (s == -1) {                  if (s == -1) {

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44