summaryrefslogtreecommitdiffhomepage
path: root/src/peer.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-24 19:55:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-30 18:07:28 +0200
commitf1aaa8a3a5fe783dcb9008fa722bac755751a719 (patch)
tree135bbdf36401524058bdb2e397a24378c954ab9d /src/peer.c
parent672b76a098b99102a46712b1d982f550f97806f2 (diff)
style: spaces after for loops
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peer.c b/src/peer.c
index fc7ee0a..168083b 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -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;
}