From 63c0b9b5a4d15c4cb5cc9961cd017c4ff8a84a98 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 11 Mar 1999 13:49:34 +0000 Subject: [PATCH] fix some warnings git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5499 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnet/main.c | 10 +++++----- appl/telnet/telnet/telnet.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/appl/telnet/telnet/main.c b/appl/telnet/telnet/main.c index 3e676f164..4d6e632e8 100644 --- a/appl/telnet/telnet/main.c +++ b/appl/telnet/telnet/main.c @@ -31,11 +31,11 @@ * SUCH DAMAGE. */ -#ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1988, 1990, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ +static char *copyright[] = { + "@(#) Copyright (c) 1988, 1990, 1993\n" + "\tThe Regents of the University of California. All rights reserved.\n", + (char*)copyright +}; #include "telnet_locl.h" RCSID("$Id$"); diff --git a/appl/telnet/telnet/telnet.c b/appl/telnet/telnet/telnet.c index 5869a54b6..f8544fbf7 100644 --- a/appl/telnet/telnet/telnet.c +++ b/appl/telnet/telnet/telnet.c @@ -1475,14 +1475,14 @@ env_opt_add(unsigned char *ep) opt_replyp = opt_reply + len - (opt_replyend - opt_replyp); opt_replyend = opt_reply + len; } - if (opt_welldefined((char *)ep)) + if (opt_welldefined((char *)ep)) { #ifdef OLD_ENVIRON if (telopt_environ == TELOPT_OLD_ENVIRON) *opt_replyp++ = old_env_var; else #endif *opt_replyp++ = NEW_ENV_VAR; - else + } else *opt_replyp++ = ENV_USERVAR; for (;;) { while ((c = *ep++)) {