summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1998-03-25 20:22:09 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1998-03-25 20:22:09 +0000
commitdd9fb09b3d1fb2b5514e48b1a85a872c9677ca8b (patch)
treec9ade318c3a7bfd0e54fef7e4809edf9597f5a66 /usr.bin
parenta3f7b77900cfffe0718160f40c053fe11c2044ba (diff)
satisfy -Wall
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rlogin/rlogin.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c
index c415ecc098f..0cb10e4576d 100644
--- a/usr.bin/rlogin/rlogin.c
+++ b/usr.bin/rlogin/rlogin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlogin.c,v 1.18 1997/09/03 18:01:01 kstailey Exp $ */
+/* $OpenBSD: rlogin.c,v 1.19 1998/03/25 20:22:08 art Exp $ */
/* $NetBSD: rlogin.c,v 1.8 1995/10/05 09:07:22 mycroft Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rlogin.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: rlogin.c,v 1.18 1997/09/03 18:01:01 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: rlogin.c,v 1.19 1998/03/25 20:22:08 art Exp $";
#endif
#endif /* not lint */
@@ -88,6 +88,13 @@ CREDENTIALS cred;
des_key_schedule schedule;
int use_kerberos = 1, doencrypt;
char dst_realm_buf[REALM_SZ], *dest_realm = NULL;
+
+int des_read __P((int, char *, int));
+int des_write __P((int, char *, int));
+
+int krcmd __P((char **, u_short, char *, char *, int *, char *));
+int krcmd_mutual __P((char **, u_short, char *, char *, int *, char *,
+ CREDENTIALS *, Key_schedule));
#endif
#ifndef TIOCPKT_WINDOW
@@ -353,6 +360,8 @@ try_connect:
(void)setuid(uid);
doit(omask);
/*NOTREACHED*/
+
+ return 0;
}
pid_t child;
@@ -527,7 +536,7 @@ writer()
stop(0);
continue;
}
- if (c != escapechar)
+ if (c != escapechar) {
#ifdef KERBEROS
if (doencrypt)
(void)des_write(rem,
@@ -535,6 +544,7 @@ writer()
else
#endif
(void)write(rem, &escapechar, 1);
+ }
}
#ifdef KERBEROS