diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-22 20:35:11 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-22 20:35:11 +0000 |
commit | 026c0cd4559e8d8a9d9b5fcfd0010fefad296c40 (patch) | |
tree | 7cae569c32d794d771c359f59be71d55791ee5c3 /libports | |
parent | 68cb80f5e14b9398aa28d92efd04732fc873182c (diff) |
(ports_get_right): Parenthesize flag test correctly.
Diffstat (limited to 'libports')
-rw-r--r-- | libports/get-right.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libports/get-right.c b/libports/get-right.c index 880c866b..dd7f5b6a 100644 --- a/libports/get-right.c +++ b/libports/get-right.c @@ -31,7 +31,7 @@ ports_get_right (void *port) mutex_lock (&_ports_lock); pi->mscount++; - if (pi->flags & PORT_HAS_SENDRIGHTS == 0) + if ((pi->flags & PORT_HAS_SENDRIGHTS) == 0) { pi->flags |= PORT_HAS_SENDRIGHTS; pi->refcnt++; |