git: 4de76195ce25 - main - sysctl: Small style fix
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 04:42:55 UTC
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)