Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/rlogin Clean up some warnings in the Kerberos section.



details:   https://anonhg.NetBSD.org/src/rev/6dc8af5944e5
branches:  trunk
changeset: 474567:6dc8af5944e5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jul 11 18:21:18 1999 +0000

description:
Clean up some warnings in the Kerberos section.

diffstat:

 usr.bin/rlogin/rlogin.c |  16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diffs (51 lines):

diff -r f3bc0b50d699 -r 6dc8af5944e5 usr.bin/rlogin/rlogin.c
--- a/usr.bin/rlogin/rlogin.c   Sun Jul 11 18:01:46 1999 +0000
+++ b/usr.bin/rlogin/rlogin.c   Sun Jul 11 18:21:18 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rlogin.c,v 1.22 1999/04/30 15:44:21 christos Exp $     */
+/*     $NetBSD: rlogin.c,v 1.23 1999/07/11 18:21:18 thorpej Exp $      */
 
 /*
  * Copyright (c) 1983, 1990, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)rlogin.c   8.4 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: rlogin.c,v 1.22 1999/04/30 15:44:21 christos Exp $");
+__RCSID("$NetBSD: rlogin.c,v 1.23 1999/07/11 18:21:18 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -172,11 +172,9 @@
        struct rlimit rlim;
 #ifdef KERBEROS
        KTEXT_ST ticket;
-       char **orig_argv = argv;
        int sock;
        long authopts;
        int through_once = 0;
-       char *cp = (char *) NULL;
        extern int _kstream_des_debug_OOB;
        char *dest_realm = NULL;
 #endif
@@ -628,15 +626,15 @@
                                stop(0);
                                continue;
                        }
-                       if (c != escapechar)
+                       if (c != escapechar) {
 #ifdef KERBEROS
-                               if (use_kerberos) {
+                               if (use_kerberos)
                                        (void)kstream_write(krem,
-                                       (char *)&escapechar, 1);
-                               }
+                                           (char *)&escapechar, 1);
                                else
 #endif
-                               (void)write(rem, &escapechar, 1);
+                                       (void)write(rem, &escapechar, 1);
+                       }
                }
 
 #ifdef KERBEROS



Home | Main Index | Thread Index | Old Index