Return to util.c CVS log | Up to [local] / src / usr.bin / ftp |
version 1.21, 1998/09/22 04:42:49 | version 1.22, 1999/12/08 12:57:06 | ||
---|---|---|---|
|
|
||
char *argv[]; | char *argv[]; | ||
{ | { | ||
char *host; | char *host; | ||
in_port_t port; | char *port; | ||
if (connected) { | if (connected) { | ||
fprintf(ttyout, "Already connected to %s, use close first.\n", | fprintf(ttyout, "Already connected to %s, use close first.\n", | ||
|
|
||
port = gateport; | port = gateport; | ||
else | else | ||
port = ftpport; | port = ftpport; | ||
#if 0 | |||
if (argc > 2) { | if (argc > 2) { | ||
char *ep; | char *ep; | ||
long nport; | long nport; | ||
|
|
||
} | } | ||
port = htons((in_port_t)nport); | port = htons((in_port_t)nport); | ||
} | } | ||
#else | |||
if (argc > 2) | |||
port = argv[2]; | |||
#endif | |||
if (gatemode) { | if (gatemode) { | ||
if (gateserver == NULL || *gateserver == '\0') | if (gateserver == NULL || *gateserver == '\0') |