1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

sysctl: Small style fix

Slightly reorder to make this look better. No functional change.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2021-12-05 21:36:43 -07:00
parent 4c57d6d555
commit 4de76195ce

View File

@ -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)