git: ifconfig(8): Use constructor priority to define the orders

Aaron LI aly at crater.dragonflybsd.org
Thu Dec 21 00:54:10 PST 2023


commit ec7e0eeb1a94a50501654a9ce9e40b8eb622d8e2
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 25 12:19:47 2023 +0800

    ifconfig(8): Use constructor priority to define the orders
    
    Originally all the modules use the same constructor priority (101) and
    rely on the linking orders (set by the file orders in the Makefile) to
    determine their initialization orders.
    
    As described in the comment in Makefile, adjust the constructor
    priorities of each module to define their orders.

Summary of changes:
 sbin/ifconfig/Makefile      | 10 ++++------
 sbin/ifconfig/af_inet.c     |  3 ++-
 sbin/ifconfig/af_inet6.c    |  3 ++-
 sbin/ifconfig/af_link.c     |  3 ++-
 sbin/ifconfig/ifbridge.c    |  3 ++-
 sbin/ifconfig/ifcarp.c      |  3 ++-
 sbin/ifconfig/ifclone.c     |  3 ++-
 sbin/ifconfig/ifconfig.c    |  5 +++--
 sbin/ifconfig/ifgroup.c     |  3 ++-
 sbin/ifconfig/ifieee80211.c |  3 ++-
 sbin/ifconfig/iflagg.c      |  3 ++-
 sbin/ifconfig/ifmedia.c     |  3 ++-
 sbin/ifconfig/ifvlan.c      |  3 ++-
 13 files changed, 29 insertions(+), 19 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list