diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-24 19:55:52 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-30 18:07:28 +0200 |
commit | 1f0e88343a6018ba06bf777781fb5e638cf66035 (patch) | |
tree | cdc2d50a25b6967db33977cf66996cccd506b4d8 /src/peer.c | |
parent | peer: use iterator macro instead of callback (diff) | |
download | wireguard-monolithic-historical-1f0e88343a6018ba06bf777781fb5e638cf66035.tar.xz wireguard-monolithic-historical-1f0e88343a6018ba06bf777781fb5e638cf66035.zip |
style: spaces after for loops
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,7 +112,7 @@ void peer_remove_all(struct wireguard_device *wg) { struct wireguard_peer *peer, *temp; lockdep_assert_held(&wg->device_update_lock); - list_for_each_entry_safe(peer, temp, &wg->peer_list, peer_list) + list_for_each_entry_safe (peer, temp, &wg->peer_list, peer_list) peer_remove(peer); } @@ -121,7 +121,7 @@ unsigned int peer_total_count(struct wireguard_device *wg) unsigned int i = 0; struct wireguard_peer *peer; lockdep_assert_held(&wg->device_update_lock); - list_for_each_entry(peer, &wg->peer_list, peer_list) + list_for_each_entry (peer, &wg->peer_list, peer_list) ++i; return i; } |