summaryrefslogtreecommitdiffstats
path: root/libexec/rlogind
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-04-25 22:23:38 +0000
committerimp <imp@FreeBSD.org>1999-04-25 22:23:38 +0000
commit8b33b875effcc83c5a2de2bd72e2c70b04652373 (patch)
treedef5aac6eb0418a20ccd70112f0e053b4d4f221e /libexec/rlogind
parent35d2979599d0ad7a7aaf62f3d59fc099119b76d3 (diff)
downloadFreeBSD-src-8b33b875effcc83c5a2de2bd72e2c70b04652373.zip
FreeBSD-src-8b33b875effcc83c5a2de2bd72e2c70b04652373.tar.gz
More egcs warning fixes:
o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). Reviewed by: obrien and chuckr
Diffstat (limited to 'libexec/rlogind')
-rw-r--r--libexec/rlogind/rlogind.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index 9974ed6..8740d14 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static const char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id: rlogind.c,v 1.21 1999/04/06 23:05:58 brian Exp $";
+ "$Id: rlogind.c,v 1.22 1999/04/07 08:27:42 brian Exp $";
#endif /* not lint */
/*
@@ -382,7 +382,7 @@ protocol(f, p)
register int f, p;
{
char pibuf[1024+1], fibuf[1024], *pbp, *fbp;
- register pcc = 0, fcc = 0;
+ int pcc = 0, fcc = 0;
int cc, nfd, n;
char cntl;
@@ -413,12 +413,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)
OpenPOWER on IntegriCloud