git: wg: Style cleanups and minor updates to selftest cookie.c and counter.c

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 8 08:49:35 PST 2024


commit af6d64032a30f9ca14d49e786b55e20c3b6547bb
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Jan 25 09:30:15 2024 +0800

    wg: Style cleanups and minor updates to selftest cookie.c and counter.c
    
    - Style cleanups to make them consistent.
    - Add '#undef' to cleanup defines.
    - Add MIT license contents to file headers.
    - Tweak 'for' loops in noise_counter_selftest() to make them more clear.
    - Rename 'rl' to be 'rl_test'; rename 'MESSAGE_LEN' to be
      'T_MESSAGE_LEN'.
    - Remove unnecessary '[0 ... INITIATIONS_BURSTABLE - 1]' initialization
      designator, and thus save one GNU extension.

Summary of changes:
 sys/net/wg/selftest/cookie.c  | 227 +++++++++++++++++++++++++-----------------
 sys/net/wg/selftest/counter.c |  41 ++++++--
 2 files changed, 167 insertions(+), 101 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/af6d64032a30f9ca14d49e786b55e20c3b6547bb


-- 
DragonFly BSD source repository


More information about the Commits mailing list