git: wg: Change some functions to return boolean for clarity

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 8 00:32:33 PST 2024


commit 682f87c9216f79618de4ca90152d8f433bd9d748
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jan 5 23:07:52 2024 +0800

    wg: Change some functions to return boolean for clarity
    
    These functions are used in 'if' conditional, so only a boolean return
    value if necessary.  Change them to return a boolean to make the code
    read more clearly.

Summary of changes:
 sys/net/wg/if_wg.c     | 55 +++++++++++++++--------------
 sys/net/wg/wg_cookie.c |  6 ++--
 sys/net/wg/wg_noise.c  | 94 ++++++++++++++++++++++++++------------------------
 sys/net/wg/wg_noise.h  | 19 +++++-----
 4 files changed, 89 insertions(+), 85 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/682f87c9216f79618de4ca90152d8f433bd9d748


-- 
DragonFly BSD source repository


More information about the Commits mailing list