Skip to content

Commit

Permalink
remove #if 0'ed portion.
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Dec 3, 1999
1 parent eb12c9f commit 136e383
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions netbsd/usr.bin/ftp/cmds.c
Expand Up @@ -957,25 +957,8 @@ setgate(argc, argv)
else if (argc == 2 && strcasecmp(argv[1], "off") == 0)
gatemode = 0;
else {
if (argc == 3) {
#if 0
char *ep;
long port;

port = strtol(argv[2], &ep, 10);
if (port < 0 || port > MAX_IN_PORT_T ||
*ep != '\0') {
fprintf(ttyout,
"%s: bad gateport value.\n",
argv[2]);
code = -1;
return;
}
gateport = htons(port);
#else
if (argc == 3)
gateport = strdup(argv[2]);
#endif
}
strncpy(gsbuf, argv[1], sizeof(gsbuf) - 1);
gsbuf[sizeof(gsbuf) - 1] = '\0';
gateserver = gsbuf;
Expand Down

0 comments on commit 136e383

Please sign in to comment.