diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-25 17:13:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-31 17:25:23 +0100 |
commit | d9d0a2cbed18e44dee398128007ac8b7b9f7a16a (patch) | |
tree | 8ba7c096a2a2f9a95462637fbf0c8e2340420c3d /src/config.c | |
parent | wg: account for padding being in zero attribute (diff) | |
download | wireguard-tools-d9d0a2cbed18e44dee398128007ac8b7b9f7a16a.tar.xz wireguard-tools-d9d0a2cbed18e44dee398128007ac8b7b9f7a16a.zip |
global: infuriating kernel iterator style
One types:
for (i = 0 ...
So one should also type:
for_each_obj (obj ...
But the upstream kernel style guidelines are insane, and so we must
instead do:
for_each_obj(obj ...
Ugly, but one must choose his battles wisely.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index ec16e26..8fe3e1c 100644 --- a/src/config.c +++ b/src/config.c @@ -384,7 +384,7 @@ bool config_read_init(struct config_ctx *ctx, bool append) struct wgdevice *config_read_finish(struct config_ctx *ctx) { struct wgpeer *peer; - for_each_wgpeer (ctx->device, peer) { + for_each_wgpeer(ctx->device, peer) { if (key_is_zero(peer->public_key)) { fprintf(stderr, "A peer is missing a public key\n"); goto err; |