diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-25 16:54:09 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-31 17:25:23 +0100 |
commit | d4e27527f0d6960899798f159d2974e02e4532cb (patch) | |
tree | ff318af1d4d0d47c990d2809a3bd2970e694692c /src/peer.c | |
parent | compat: be sure to include header before testing (diff) | |
download | wireguard-monolithic-historical-d4e27527f0d6960899798f159d2974e02e4532cb.tar.xz wireguard-monolithic-historical-d4e27527f0d6960899798f159d2974e02e4532cb.zip |
peer: get rid of peer_for_each magic
Since the peer list is protected by the device_update_lock, and since
items are removed from the peer list before putting their final
reference, we don't actually need to take a reference when iterating.
This allows us to simplify the macro considerably.
Suggested-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'src/peer.c')
0 files changed, 0 insertions, 0 deletions