diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 03:54:28 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 18:51:34 +0200 |
commit | 780a5974d0256eed1e03a096b43f066043f8eb15 (patch) | |
tree | 3ba7923f145fd27706c11f956b1e485fd7dca5d6 /src/device.c | |
parent | global: rename struct wireguard_ to struct wg_ (diff) | |
download | wireguard-monolithic-historical-780a5974d0256eed1e03a096b43f066043f8eb15.tar.xz wireguard-monolithic-historical-780a5974d0256eed1e03a096b43f066043f8eb15.zip |
global: more nits
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/device.c b/src/device.c index 3a98c86..2641c18 100644 --- a/src/device.c +++ b/src/device.c @@ -57,7 +57,7 @@ static int wg_open(struct net_device *dev) if (ret < 0) return ret; mutex_lock(&wg->device_update_lock); - list_for_each_entry (peer, &wg->peer_list, peer_list) { + list_for_each_entry(peer, &wg->peer_list, peer_list) { wg_packet_send_staged_packets(peer); if (peer->persistent_keepalive_interval) wg_packet_send_keepalive(peer); @@ -77,9 +77,9 @@ static int wg_pm_notification(struct notifier_block *nb, unsigned long action, return 0; rtnl_lock(); - list_for_each_entry (wg, &device_list, device_list) { + list_for_each_entry(wg, &device_list, device_list) { mutex_lock(&wg->device_update_lock); - list_for_each_entry (peer, &wg->peer_list, peer_list) { + list_for_each_entry(peer, &wg->peer_list, peer_list) { wg_noise_handshake_clear(&peer->handshake); wg_noise_keypairs_clear(&peer->keypairs); if (peer->timers_enabled) @@ -100,7 +100,7 @@ static int wg_stop(struct net_device *dev) struct wg_peer *peer; mutex_lock(&wg->device_update_lock); - list_for_each_entry (peer, &wg->peer_list, peer_list) { + list_for_each_entry(peer, &wg->peer_list, peer_list) { skb_queue_purge(&peer->staged_packet_queue); wg_timers_stop(peer); wg_noise_handshake_clear(&peer->handshake); |