From 699c4ce680db1fb49447b9e177bccaa2b451e33c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 8 Jul 2001 21:18:14 +0000 Subject: -Wall --- libexec/rlogind/rlogind.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libexec/rlogind') diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index a9b5c3a5e3e..7657294c972 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlogind.c,v 1.28 2001/06/11 15:18:50 mickey Exp $ */ +/* $OpenBSD: rlogind.c,v 1.29 2001/07/08 21:18:09 deraadt Exp $ */ /*- * Copyright (c) 1983, 1988, 1989, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93"; */ -static char *rcsid = "$OpenBSD: rlogind.c,v 1.28 2001/06/11 15:18:50 mickey Exp $"; +static char *rcsid = "$OpenBSD: rlogind.c,v 1.29 2001/07/08 21:18:09 deraadt Exp $"; #endif /* not lint */ /* @@ -70,6 +70,7 @@ static char *rcsid = "$OpenBSD: rlogind.c,v 1.28 2001/06/11 15:18:50 mickey Exp #include #include +#include #include #include #include @@ -416,7 +417,7 @@ protocol(f, p) register int f, p; { char pibuf[1024+1], fibuf[1024], *pbp, *fbp; - register pcc = 0, fcc = 0; + register int pcc = 0, fcc = 0; int cc, nfd, n; char cntl; @@ -447,12 +448,13 @@ protocol(f, p) omask = &obits; } else FD_SET(f, &ibits); - if (pcc >= 0) + if (pcc >= 0) { if (pcc) { FD_SET(f, &obits); omask = &obits; } else FD_SET(p, &ibits); + } FD_SET(p, &ebits); if ((n = select(nfd, &ibits, omask, &ebits, 0)) < 0) { if (errno == EINTR) -- cgit v1.2.3