diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-22 20:36:06 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-22 20:36:06 +0000 |
commit | c61c61a4f8bbf33b480e4db209a6ba78119e11fa (patch) | |
tree | 3b3ae06ac670bb2a672979b9dfbd3d3b3014ad71 /libports | |
parent | 026c0cd4559e8d8a9d9b5fcfd0010fefad296c40 (diff) |
(ports_reallocate_from_external): Parenthesize flags test correctly.
Diffstat (limited to 'libports')
-rw-r--r-- | libports/reallocate-from-external.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libports/reallocate-from-external.c b/libports/reallocate-from-external.c index 74e6d76c..7e6ea1df 100644 --- a/libports/reallocate-from-external.c +++ b/libports/reallocate-from-external.c @@ -49,7 +49,7 @@ ports_reallocate_from_external (void *portstruct, mach_port_t receive) dropref = 1; pi->flags &= ~PORT_HAS_SENDRIGHTS; } - else if ((pi->flags & PORT_HAS_SENDRIGHTS == 0) && stat.mps_srights) + else if (((pi->flags & PORT_HAS_SENDRIGHTS) == 0) && stat.mps_srights) { pi->flags |= PORT_HAS_SENDRIGHTS; pi->refcnt++; |