aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/peer.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-20 18:46:30 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:22:49 +0100
commit328e3861dcb034d38c7cc10007067abd3eebe39f (patch)
tree169962c2c1a1aa50f6ff87f1d40993c6e10e6b8e /src/peer.h
parentcompat: fix up stat calculation for udp tunnel (diff)
downloadwireguard-monolithic-historical-328e3861dcb034d38c7cc10007067abd3eebe39f.tar.xz
wireguard-monolithic-historical-328e3861dcb034d38c7cc10007067abd3eebe39f.zip
global: accept decent check_patch.pl suggestions
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/peer.h b/src/peer.h
index 466b7f7..3581c73 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -69,7 +69,9 @@ struct wireguard_peer *peer_lookup_by_index(struct wireguard_device *wg, u32 ind
unsigned int peer_total_count(struct wireguard_device *wg);
-/* This is a macro iterator of essentially this:
+/* This is a macro iterator of essentially as follows, with the
+ * exception that typing `break` in the ITERATOR_BODY will still
+ * actually put the peer reference:
*
* if (__should_lock)
* mutex_lock(&(__wg)->device_update_lock);