From 4de76195ce25d380323d0aa0e96fd1753cacd285 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 5 Dec 2021 21:36:43 -0700 Subject: [PATCH] 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)