git: ifconfig(8): Sync with FreeBSD a bit and various cleanups
Aaron LI
aly at crater.dragonflybsd.org
Sat Aug 4 18:49:42 PDT 2018
commit 46158ff547aeb44d75edbca7a8c8ecd565aec166
Author: Aaron LI <aly at aaronly.me>
Date: Sat Mar 24 16:56:39 2018 +0800
ifconfig(8): Sync with FreeBSD a bit and various cleanups
* Sync ifconfig.c a bit with FreeBSD; replace several warnx() with
errx(), and improve error messages a bit.
* Remove unnecessary exit() after Perror().
* Sync if_clone.c with FreeBSD.
* Add inclusion guard to ifconfig.h.
* Make iseq() a static function for ifieee80211.c and regdomain.c,
replacing the duplicate definitions of it; and use iseq()
consistently to replace strncasecmp() and strcasecmp().
* Move "struct ident" from regdomain.c to regdomain.h, and add and use
"enum IdentType".
* Various whitespace cleanups.
* Cleanup header file inclusion: remove duplicates, and reorder a bit.
* Fix various signed vs. unsigned comparisons.
* Fix some compilation warnings, and raise WARNS to 3.
Summary of changes:
sbin/ifconfig/Makefile | 6 +-
sbin/ifconfig/af_inet.c | 21 ++---
sbin/ifconfig/af_inet6.c | 45 +++++----
sbin/ifconfig/af_link.c | 8 +-
sbin/ifconfig/ifbridge.c | 20 ++--
sbin/ifconfig/ifcarp.c | 13 +--
sbin/ifconfig/ifclone.c | 22 +++--
sbin/ifconfig/ifconfig.c | 127 ++++++++++++-------------
sbin/ifconfig/ifconfig.h | 9 +-
sbin/ifconfig/ifieee80211.c | 224 ++++++++++++++++++++++++--------------------
sbin/ifconfig/iflagg.c | 23 ++---
sbin/ifconfig/ifmedia.c | 11 +--
sbin/ifconfig/ifvlan.c | 11 +--
sbin/ifconfig/regdomain.c | 29 +++---
sbin/ifconfig/regdomain.h | 16 +++-
15 files changed, 299 insertions(+), 286 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/46158ff547aeb44d75edbca7a8c8ecd565aec166
--
DragonFly BSD source repository
More information about the Commits
mailing list