diff options
Diffstat (limited to 'lib/libc/gen/getttyent.c')
-rw-r--r-- | lib/libc/gen/getttyent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/getttyent.c b/lib/libc/gen/getttyent.c index 83f97e8..2671015 100644 --- a/lib/libc/gen/getttyent.c +++ b/lib/libc/gen/getttyent.c @@ -50,7 +50,7 @@ getttynam(tty) register struct ttyent *t; setttyent(); - while (t = getttyent()) + while ( (t = getttyent()) ) if (!strcmp(tty, t->ty_name)) break; endttyent(); @@ -120,7 +120,7 @@ getttyent() tty.ty_comment = p; if (*p == 0) tty.ty_comment = 0; - if (p = index(p, '\n')) + if ( (p = index(p, '\n')) ) *p = '\0'; return (&tty); } @@ -180,7 +180,7 @@ setttyent() if (tf) { rewind(tf); return (1); - } else if (tf = fopen(_PATH_TTYS, "r")) + } else if ( (tf = fopen(_PATH_TTYS, "r")) ) return (1); return (0); } |