summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/ttyslot.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/ttyslot.c')
-rw-r--r--lib/libc/gen/ttyslot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/ttyslot.c b/lib/libc/gen/ttyslot.c
index 3d9fee6..066f2f9 100644
--- a/lib/libc/gen/ttyslot.c
+++ b/lib/libc/gen/ttyslot.c
@@ -50,9 +50,9 @@ ttyslot()
char *name;
setttyent();
- for (cnt = 0; cnt < 3; ++cnt)
+ for (cnt = 0; cnt < 3; ++cnt)
if (name = ttyname(cnt)) {
- if (p = rindex(name, '/'))
+ if (p = rindex(name, '/'))
++p;
else
p = name;
OpenPOWER on IntegriCloud