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 | 2ae6cad8f509759e6ce8ca4e8a6c18ea5aabc605 (patch) | |
tree | 0c2b5d6796e2593e0fec676089f444707cd66035 /src/selftest/counter.c | |
parent | 1027c1fb4493130ed9df96fd4092c4bf9c599b82 (diff) |
global: more nits
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/selftest/counter.c')
-rw-r--r-- | src/selftest/counter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/selftest/counter.c b/src/selftest/counter.c index 7e14eeb..0d8b192 100644 --- a/src/selftest/counter.c +++ b/src/selftest/counter.c @@ -17,7 +17,7 @@ bool __init wg_packet_counter_selftest(void) #define T_LIM (COUNTER_WINDOW_SIZE + 1) #define T(n, v) do { \ ++test_num; \ - if (counter_validate(&counter, n) != v) { \ + if (counter_validate(&counter, n) != (v)) { \ pr_err("nonce counter self-test %u: FAIL\n", \ test_num); \ success = false; \ @@ -92,6 +92,7 @@ bool __init wg_packet_counter_selftest(void) T(i, true); T(0, true); T(COUNTER_WINDOW_SIZE + 1, true); + #undef T #undef T_LIM #undef T_INIT |