git: ifconfig(8): Change some 'int' variables to 'bool' whenever possible

Aaron LI aly at crater.dragonflybsd.org
Fri Feb 9 01:43:06 PST 2024


commit 6dc504c38aefcf67092802392a20b013461c8c2e
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Feb 9 17:35:45 2024 +0800

    ifconfig(8): Change some 'int' variables to 'bool' whenever possible
    
    I'd like to change 'doalias' as well, but it seems to require 3 states,
    so leave it alone this moment.

Summary of changes:
 sbin/ifconfig/af_inet6.c    |  3 +-
 sbin/ifconfig/ifclone.c     |  2 +-
 sbin/ifconfig/ifconfig.c    | 67 +++++++++++++++++++++++----------------------
 sbin/ifconfig/ifconfig.h    | 12 ++++----
 sbin/ifconfig/ifieee80211.c | 20 ++++++++------
 5 files changed, 57 insertions(+), 47 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6dc504c38aefcf67092802392a20b013461c8c2e


-- 
DragonFly BSD source repository


More information about the Commits mailing list