From 650a95f2b89cf364f07baa35b1952ee7c5bb4070 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 25 Apr 1996 20:15:00 +0000 Subject: fixup --- term/ptyio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'term/ptyio.c') diff --git a/term/ptyio.c b/term/ptyio.c index 3ad8d55a..075ef2f8 100644 --- a/term/ptyio.c +++ b/term/ptyio.c @@ -115,7 +115,7 @@ pty_po_create_hook (struct trivfs_peropen *po) { xxx_record (RB_CREATE); mutex_lock (&global_lock); - if (po->flags & (O_READ | O_WRITE)) + if (po->openmodes & (O_READ | O_WRITE)) { xxx_record (RB_INC); nptyperopens++; @@ -130,7 +130,7 @@ pty_po_destroy_hook (struct trivfs_peropen *po) { xxx_record (RB_DESTROY); mutex_lock (&global_lock); - if ((po->flags & (O_READ | O_WRITE)) == 0) + if ((po->openmodes & (O_READ | O_WRITE)) == 0) { mutex_unlock (&global_lock); return 0; -- cgit v1.2.3