summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
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;