git: ifconfig(8): Use on-stack buffer for the new ifname

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


commit 4e86c5c1bb5e390b0135adea511b6e69ca8c60f5
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Dec 13 10:18:48 2023 +0800

    ifconfig(8): Use on-stack buffer for the new ifname
    
    Don't bother to allocate the memory and then free it after ioctl().

Summary of changes:
 sbin/ifconfig/ifconfig.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4e86c5c1bb5e390b0135adea511b6e69ca8c60f5


-- 
DragonFly BSD source repository


More information about the Commits mailing list