git: ifconfig(8): Get rid of the global 'struct ifreq ifr'
Aaron LI
aly at crater.dragonflybsd.org
Thu Dec 21 00:54:11 PST 2023
commit c29ec766c47b600d7ac86fe2a71499fc96b97597
Author: Aaron LI <aly at aaronly.me>
Date: Wed Dec 13 09:37:54 2023 +0800
ifconfig(8): Get rid of the global 'struct ifreq ifr'
Use on-stack 'struct ifreq' instead. Now it's much more clear to reason
about its usage.
Summary of changes:
sbin/ifconfig/ifcarp.c | 30 +++++++++++++---
sbin/ifconfig/ifclone.c | 3 ++
sbin/ifconfig/ifconfig.c | 90 +++++++++++++++++++++++++++++-------------------
sbin/ifconfig/ifconfig.h | 1 -
sbin/ifconfig/ifmedia.c | 29 ++++++----------
sbin/ifconfig/ifvlan.c | 13 +++++++
6 files changed, 107 insertions(+), 59 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c29ec766c47b600d7ac86fe2a71499fc96b97597
--
DragonFly BSD source repository
More information about the Commits
mailing list