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

Diff for /src/usr.bin/telnet/commands.c between version 1.26 and 1.27

version 1.26, 2000/01/29 16:07:08 version 1.27, 2000/02/05 18:17:56
Line 2388 
Line 2388 
     for (res = res0; res; res = res->ai_next) {      for (res = res0; res; res = res->ai_next) {
         if (1 /* retry */) {          if (1 /* retry */) {
             char hbuf[MAXHOSTNAMELEN];              char hbuf[MAXHOSTNAMELEN];
   #ifdef NI_WITHSCOPEID
               const int niflags = NI_NUMERICHOST | NI_WITHSCOPEID;
   #else
               const int niflags = NI_NUMERICHOST;
   #endif
   
             getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),              getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),
                 NULL, 0, NI_NUMERICHOST);                  NULL, 0, niflags);
             printf("Trying %s...\r\n", hbuf);              printf("Trying %s...\r\n", hbuf);
         }          }
         net = socket(res->ai_family, res->ai_socktype, res->ai_protocol);          net = socket(res->ai_family, res->ai_socktype, res->ai_protocol);

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27