From nobody Mon Dec 06 04:42:55 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 27C9318BCD35; Mon, 6 Dec 2021 04:42:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J6rQR60C5z3P7l; Mon, 6 Dec 2021 04:42:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AD47725590; Mon, 6 Dec 2021 04:42:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B64gt6O033364; Mon, 6 Dec 2021 04:42:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B64gtRA033363; Mon, 6 Dec 2021 04:42:55 GMT (envelope-from git) Date: Mon, 6 Dec 2021 04:42:55 GMT Message-Id: <202112060442.1B64gtRA033363@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 4de76195ce25 - main - sysctl: Small style fix List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4de76195ce25d380323d0aa0e96fd1753cacd285 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638765775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B2xXsP85kBqqjeY3WBx+SWfULTPuM1yWt6L4K1dxP3Y=; b=KCfa0Tg4Uj85GE9AvMmCpgwnjeudrchajiK1102Z8Qxz+h/iRfgz306AhcMk0B1YXZhU58 WAbfWfXFN7vWUEhm4QMO5XJ9X11kxPsjKYZuLqjWqx3A4u16H1nwoVAcAVNoPszyKFKTZS 95a+vmvBm9e+XFztiM1hmPQocXd5lOu19vKhex8XRoAg1y5bmyrP8fKIQrYGzlg0jSWwQm I2jU8LZuUVb5pr7tb+m2iVZHQX5UEBfWzxbPz2bZMuT3vt5M4MA+glqk8TRTQtmM7i7HTt QtPxQycFcEOkeRIMX1Ka0drNZ/72vZoQDbYG0tFAsHvkQHk8EQR21D3PRWdBzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638765775; a=rsa-sha256; cv=none; b=Ly2fokTIWO0CKe0ZU7H/nyJQMPsvz+MGJ2UlCZofqORbKSHyJiam7ymz5+lXUJ/xKMWRpA p6CNjE2qpGPCtOueVP36ZXVJKgb7fY5fNokjyT/DHZjSldUzrHNphHMzSovhupS2mPJICO Zg3HrtJ7YNmuv7iL+E23fynG6WcEeb3oX320iEN9izH3QfoHk4c+9im0Mn9VAOofbK2fgB EgynmH1O8fVpUBw9igWK9dCCy8dRknteMyBjGtb17hiGaPHZUH6wOxoRUaQuUB9t0GXdEM C0wTWI/hOxZAjlv5omgdh3XJaOIf+RAIwjUI5cBmuS5e8lBbtp6HyirIVtDbPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4de76195ce25d380323d0aa0e96fd1753cacd285 commit 4de76195ce25d380323d0aa0e96fd1753cacd285 Author: Warner Losh AuthorDate: 2021-12-06 04:36:43 +0000 Commit: Warner Losh 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)