summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 16:35:38 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 16:35:38 +0000
commit717dcd95e7d9bf77c9855e3e13eada15900b3231 (patch)
treee53dd53fbe582a8e540fe4bff4f75c49d1c2d9ed
parenta6f82b9d63d88072693024404a981b19a5c1e7eb (diff)
(ports_lookup_port): Remove assignment from if test.
-rw-r--r--libports/lookup-port.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libports/lookup-port.c b/libports/lookup-port.c
index 3db912c6..94b3c2a7 100644
--- a/libports/lookup-port.c
+++ b/libports/lookup-port.c
@@ -35,8 +35,11 @@ ports_lookup_port (struct port_bucket *bucket,
pi = ihash_find (bucket->htable, port);
else
for (bucket = _ports_all_buckets; bucket; bucket = bucket->next)
- if (pi = ihash_find (bucket->htable, port))
- break;
+ {
+ pi = ihash_find (bucket->htable, port);
+ if (pi)
+ break;
+ }
if (pi && class && pi->class != class)
pi = 0;