diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2020-11-30 21:59:52 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2020-11-30 21:59:52 +0000 |
commit | 8db8bebf1fd70e74dc8125bd2a3db1aa369eddab (patch) | |
tree | 6bd8fbc56d5ac5f4f58baf02f2445a6a3098a364 /usr.sbin/efibootmgr/efibootmgr.c | |
parent | 77df2c21cb29bec685a1e35f92e57fa3fb8d726d (diff) | |
download | src-8db8bebf1fd70e74dc8125bd2a3db1aa369eddab.tar.gz src-8db8bebf1fd70e74dc8125bd2a3db1aa369eddab.zip |
Move inner loop logic out of sysctl_sysctl_next_ls().
Refactor sysctl_sysctl_next_ls():
* Move huge inner loop out of sysctl_sysctl_next_ls() into a separate
non-recursive function, returning the next step to be taken.
* Update resulting node oid parts only on successful lookup
* Make sysctl_sysctl_next_ls() return boolean success/failure instead of errno,
slightly simplifying logic
Reviewed by: freqlabs
Differential Revision: https://reviews.freebsd.org/D27029
Notes
Notes:
svn path=/head/; revision=368199
Diffstat (limited to 'usr.sbin/efibootmgr/efibootmgr.c')
0 files changed, 0 insertions, 0 deletions