diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-23 13:01:48 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-23 13:01:48 -0400 |
commit | 65b2c6037499d3e938a4a5c5bdf03ffddb90ba45 (patch) | |
tree | 2809d198732a5de08b1e221a03746033abe87f13 /gpsd.c | |
parent | 52b3aba3a71d53dd4605be85f7cc8311a843bbde (diff) | |
download | gpsd-65b2c6037499d3e938a4a5c5bdf03ffddb90ba45.tar.gz |
Minor cleanup on Gleb Smirnoff's patch. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2310,9 +2310,8 @@ int main(int argc, char *argv[]) if (!allocated_device(device)) continue; - if (device_needed != true) - for (sub = subscribers; sub < subscribers + MAXSUBSCRIBERS; - sub++) { + if (!device_needed) + for (sub=subscribers; sub<subscribers+MAXSUBSCRIBERS; sub++) { if (sub->active == 0) continue; device_needed = subscribed(sub, device); |