summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-19 19:41:40 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-19 19:41:40 +0000
commitb53c7f6aa85c9ffc92384da7b7aeba911ad5b743 (patch)
treed1d4704fc0c176c3e57726081b2a4d4c73408720 /init
parentdc7f358e6409440c9ae88367b577ccc2fe085fc6 (diff)
(init_ttys, reread_ttys): Test return value of setttyent correctly.
Diffstat (limited to 'init')
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index b542847a..76ebf968 100644
--- a/init/init.c
+++ b/init/init.c
@@ -526,7 +526,7 @@ init_ttys (void)
ttys = malloc (ttyslen * sizeof (struct ttyent));
bzero (ttys, ttyslen * sizeof (struct ttyent));
- if (setttyent ())
+ if (!setttyent ())
{
perror (_PATH_TTYS);
return 1;
@@ -653,7 +653,7 @@ reread_ttys (void)
struct terminal *t;
int on;
- if (setttyent ())
+ if (!setttyent ())
{
perror (_PATH_TTYS);
return;