summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libports/ChangeLog8
-rw-r--r--libports/resume-all-rpcs.c2
-rw-r--r--libports/resume-bucket-rpcs.c2
-rw-r--r--libports/resume-class-rpcs.c2
-rw-r--r--libports/resume-port-rpcs.c2
5 files changed, 12 insertions, 4 deletions
diff --git a/libports/ChangeLog b/libports/ChangeLog
index e650d158..d3ccd710 100644
--- a/libports/ChangeLog
+++ b/libports/ChangeLog
@@ -1,3 +1,11 @@
+2004-11-03 Ognyan Kulev <ogi@fmi.uni-sofia.bg>
+
+ * resume-all-rpcs.c (ports_resume_all_rpcs): Fix check for block
+ condition.
+ * resume-bucket-rpcs.c (ports_resume_bucket_rpcs): Likewise.
+ * resume-class-rpcs.c (ports_resume_class_rpcs): Likewise.
+ * resume-port-rpcs.c (ports_resume_port_rpcs): Likewise.
+
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* ports.h (struct port_bucket): Change type of HTABLE to struct
diff --git a/libports/resume-all-rpcs.c b/libports/resume-all-rpcs.c
index fa978c1e..452da3b2 100644
--- a/libports/resume-all-rpcs.c
+++ b/libports/resume-all-rpcs.c
@@ -28,7 +28,7 @@ ports_resume_all_rpcs ()
mutex_lock (&_ports_lock);
assert (_ports_flags & _PORTS_INHIBITED);
_ports_flags &= ~_PORTS_INHIBITED;
- if (_ports_flags | _PORTS_BLOCKED)
+ if (_ports_flags & _PORTS_BLOCKED)
{
_ports_flags &= ~_PORTS_BLOCKED;
condition_broadcast (&_ports_block);
diff --git a/libports/resume-bucket-rpcs.c b/libports/resume-bucket-rpcs.c
index 9d968874..59cc75a4 100644
--- a/libports/resume-bucket-rpcs.c
+++ b/libports/resume-bucket-rpcs.c
@@ -28,7 +28,7 @@ ports_resume_bucket_rpcs (struct port_bucket *bucket)
mutex_lock (&_ports_lock);
assert (bucket->flags & PORT_BUCKET_INHIBITED);
bucket->flags &= ~PORT_BUCKET_INHIBITED;
- if (bucket->flags | PORT_BUCKET_BLOCKED)
+ if (bucket->flags & PORT_BUCKET_BLOCKED)
{
bucket->flags &= ~PORT_BUCKET_BLOCKED;
condition_broadcast (&_ports_block);
diff --git a/libports/resume-class-rpcs.c b/libports/resume-class-rpcs.c
index 4b35f26c..a4191747 100644
--- a/libports/resume-class-rpcs.c
+++ b/libports/resume-class-rpcs.c
@@ -28,7 +28,7 @@ ports_resume_class_rpcs (struct port_class *class)
mutex_lock (&_ports_lock);
assert (class->flags & PORT_CLASS_INHIBITED);
class->flags &= ~PORT_CLASS_INHIBITED;
- if (class->flags | PORT_CLASS_BLOCKED)
+ if (class->flags & PORT_CLASS_BLOCKED)
{
class->flags &= ~PORT_CLASS_BLOCKED;
condition_broadcast (&_ports_block);
diff --git a/libports/resume-port-rpcs.c b/libports/resume-port-rpcs.c
index 563c9adc..e9e30fbd 100644
--- a/libports/resume-port-rpcs.c
+++ b/libports/resume-port-rpcs.c
@@ -31,7 +31,7 @@ ports_resume_port_rpcs (void *portstruct)
assert (pi->flags & PORT_INHIBITED);
pi->flags &= ~PORT_INHIBITED;
- if (pi->flags | PORT_BLOCKED)
+ if (pi->flags & PORT_BLOCKED)
{
pi->flags &= ~PORT_BLOCKED;
condition_broadcast (&_ports_block);