diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-25 20:15:00 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-25 20:15:00 +0000 |
commit | 650a95f2b89cf364f07baa35b1952ee7c5bb4070 (patch) | |
tree | 64f7d290d92195cfc7d0f8b1491b27c6a9903561 /term | |
parent | 6584590b18b43595c1e27e46fee6bb1d4a498471 (diff) |
fixup
Diffstat (limited to 'term')
-rw-r--r-- | term/ptyio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |