summaryrefslogtreecommitdiff
path: root/libports/get-right.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-22 20:35:11 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-22 20:35:11 +0000
commit026c0cd4559e8d8a9d9b5fcfd0010fefad296c40 (patch)
tree7cae569c32d794d771c359f59be71d55791ee5c3 /libports/get-right.c
parent68cb80f5e14b9398aa28d92efd04732fc873182c (diff)
(ports_get_right): Parenthesize flag test correctly.
Diffstat (limited to 'libports/get-right.c')
-rw-r--r--libports/get-right.c2
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++;