[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.37 and 1.38

version 1.37, 2001/07/12 05:17:22 version 1.38, 2001/09/03 05:28:51
Line 2370 
Line 2370 
         hints.ai_flags = AI_CANONNAME;          hints.ai_flags = AI_CANONNAME;
         if (portp == NULL) {          if (portp == NULL) {
             portp = "telnet";              portp = "telnet";
               telnetport = 1;
         } else if (*portp == '-') {          } else if (*portp == '-') {
             portp++;              portp++;
             telnetport = 1;              telnetport = 1;
         }          } else
               telnetport = 0;
         h_errno = 0;          h_errno = 0;
         error = getaddrinfo(hostp, portp, &hints, &res0);          error = getaddrinfo(hostp, portp, &hints, &res0);
         if (error) {          if (error) {

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38