git: wg: Style cleanups and minor updates to if_wg.c
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:31 PST 2024
commit 786ba6873e2abea582a033bf2df589b2b88e68d4
Author: Aaron LI <aly at aaronly.me>
Date: Sun Nov 26 11:22:53 2023 +0800
wg: Style cleanups and minor updates to if_wg.c
- Add 'static' qualifier to MALLOC_DEFINE().
- Remove obsolete 'TODO' markers.
- Add '__func__' to several panic() messages.
- Compare the return value of noise_keypair_received_with() to 0 instead
of ECONNRESET, making it read clearer.
- Various style adjustments and cleanups.
Summary of changes:
sys/net/wg/if_wg.c | 138 ++++++++++++++++++++++++++++++-----------------------
1 file changed, 79 insertions(+), 59 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/786ba6873e2abea582a033bf2df589b2b88e68d4
--
DragonFly BSD source repository
More information about the Commits
mailing list