From 7c8744f3f8adbd45cb5bf1ba406a3e49a53a538d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 1 Feb 1997 20:09:46 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20`upcase=C2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check HAVE_SETSOCKOPT git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1206 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnet/utilities.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) 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 } /*