Date: Mon, 6 Dec 2021 04:42:55 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 4de76195ce25 - main - sysctl: Small style fix Message-ID: <202112060442.1B64gtRA033363@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4de76195ce25d380323d0aa0e96fd1753cacd285 commit 4de76195ce25d380323d0aa0e96fd1753cacd285 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-12-06 04:36:43 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-12-06 04:40:47 +0000 sysctl: Small style fix Slightly reorder to make this look better. No functional change. Sponsored by: Netflix --- sbin/sysctl/sysctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 8d658dc2debe..5a090ca20fc4 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -981,9 +981,8 @@ show_var(int *oid, int nlen, bool honor_skip) bzero(fmt, BUFSIZ); bzero(name, BUFSIZ); qoid[0] = CTL_SYSCTL; - memcpy(qoid + 2, oid, nlen * sizeof(int)); - qoid[1] = CTL_SYSCTL_NAME; + memcpy(qoid + 2, oid, nlen * sizeof(int)); j = sizeof(name); i = sysctl(qoid, nlen + 2, name, &j, 0, 0); if (i || !j)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112060442.1B64gtRA033363>