aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/selftest
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
commit1f0e88343a6018ba06bf777781fb5e638cf66035 (patch)
treecdc2d50a25b6967db33977cf66996cccd506b4d8 /src/selftest
parentpeer: use iterator macro instead of callback (diff)
downloadwireguard-monolithic-historical-1f0e88343a6018ba06bf777781fb5e638cf66035.tar.xz
wireguard-monolithic-historical-1f0e88343a6018ba06bf777781fb5e638cf66035.zip
style: spaces after for loops
Diffstat (limited to 'src/selftest')
-rw-r--r--src/selftest/routingtable.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/selftest/routingtable.h b/src/selftest/routingtable.h
index 0915e65..26ec5e0 100644
--- a/src/selftest/routingtable.h
+++ b/src/selftest/routingtable.h
@@ -65,7 +65,7 @@ static void horrible_routing_table_free(struct horrible_routing_table *table)
{
struct hlist_node *h;
struct horrible_routing_table_node *node;
- hlist_for_each_entry_safe(node, h, &table->head, table) {
+ hlist_for_each_entry_safe (node, h, &table->head, table) {
hlist_del(&node->table);
kfree(node);
};
@@ -112,7 +112,7 @@ static void horrible_insert_ordered(struct horrible_routing_table *table, struct
{
struct horrible_routing_table_node *other = NULL, *where = NULL;
uint8_t my_cidr = horrible_mask_to_cidr(node->mask);
- hlist_for_each_entry(other, &table->head, table) {
+ hlist_for_each_entry (other, &table->head, table) {
if (!memcmp(&other->mask, &node->mask, sizeof(union nf_inet_addr)) &&
!memcmp(&other->ip, &node->ip, sizeof(union nf_inet_addr)) &&
other->ip_version == node->ip_version) {
@@ -161,7 +161,7 @@ static void *horrible_routing_table_lookup_v4(struct horrible_routing_table *tab
{
struct horrible_routing_table_node *node;
void *ret = NULL;
- hlist_for_each_entry(node, &table->head, table) {
+ hlist_for_each_entry (node, &table->head, table) {
if (node->ip_version != 4)
continue;
if (horrible_match_v4(node, ip)) {
@@ -175,7 +175,7 @@ static void *horrible_routing_table_lookup_v6(struct horrible_routing_table *tab
{
struct horrible_routing_table_node *node;
void *ret = NULL;
- hlist_for_each_entry(node, &table->head, table) {
+ hlist_for_each_entry (node, &table->head, table) {
if (node->ip_version != 6)
continue;
if (horrible_match_v6(node, ip)) {