Return to commands.c CVS log | Up to [local] / src / usr.bin / telnet |
version 1.37, 2001/07/12 05:17:22 | version 1.38, 2001/09/03 05:28:51 | ||
---|---|---|---|
|
|
||
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) { |