summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/ttyslot.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
committerjkh <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
commitc4d4a99d31762beef936f34571330923e9300da9 (patch)
treec116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libc/gen/ttyslot.c
parent6657f01bfd009bbf4ec0481a17712259abf8ea77 (diff)
downloadFreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.zip
FreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.tar.gz
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'lib/libc/gen/ttyslot.c')
-rw-r--r--lib/libc/gen/ttyslot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/ttyslot.c b/lib/libc/gen/ttyslot.c
index 066f2f9..2f72ebb 100644
--- a/lib/libc/gen/ttyslot.c
+++ b/lib/libc/gen/ttyslot.c
@@ -51,12 +51,12 @@ ttyslot()
setttyent();
for (cnt = 0; cnt < 3; ++cnt)
- if (name = ttyname(cnt)) {
- if (p = rindex(name, '/'))
+ if ( (name = ttyname(cnt)) ) {
+ if ( (p = rindex(name, '/')) )
++p;
else
p = name;
- for (slot = 1; ttyp = getttyent(); ++slot)
+ for (slot = 1; (ttyp = getttyent()); ++slot)
if (!strcmp(ttyp->ty_name, p)) {
endttyent();
return(slot);
OpenPOWER on IntegriCloud