diff --git a/appl/telnet/telnet/utilities.c b/appl/telnet/telnet/utilities.c index d25bc6e41..30a4d6603 100644 --- a/appl/telnet/telnet/utilities.c +++ b/appl/telnet/telnet/utilities.c @@ -63,25 +63,6 @@ RCSID("$Id$"); FILE *NetTrace = 0; /* Not in bss, since needs to stay */ int prettydump; -/* - * upcase() - * - * Upcase (in place) the argument. - */ - -void -upcase(char *argument) -{ - int c; - - while ((c = *argument) != 0) { - if (islower(c)) { - *argument = toupper(c); - } - argument++; - } -} - /* * SetSockOpt() * @@ -91,6 +72,7 @@ upcase(char *argument) int SetSockOpt(int fd, int level, int option, int yesno) { +#ifdef HAVE_SETSOCKOPT #ifndef NOT43 return setsockopt(fd, level, option, (void *)&yesno, sizeof yesno); @@ -102,6 +84,9 @@ SetSockOpt(int fd, int level, int option, int yesno) } return setsockopt(fd, level, option, 0, 0); #endif /* NOT43 */ +#else + return -1; +#endif } /*