nv.9: Improve style in one of the examples.

Reviewed by:		allanjude, oshogbo
Approved by:		allanjude, oshogbo
Differential Revision:	https://reviews.freebsd.org/D38287
This commit is contained in:
Pawel Jakub Dawidek 2022-11-07 00:10:16 -08:00
parent 5c274b3622
commit 14ba79255b

View File

@ -29,7 +29,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 19, 2018 .Dd February 2, 2023
.Dt NV 9 .Dt NV 9
.Os .Os
.Sh NAME .Sh NAME
@ -933,8 +933,7 @@ do {
nvl = tmp; nvl = tmp;
while ((name = nvlist_next(nvl, &type, &cookie)) != NULL) { while ((name = nvlist_next(nvl, &type, &cookie)) != NULL) {
if (type == NV_TYPE_NVLIST) { if (type == NV_TYPE_NVLIST) {
nvl = nvlist_get_nvlist(nvl, nvl = nvlist_get_nvlist(nvl, name);
name);
cookie = NULL; cookie = NULL;
} else if (type == NV_TYPE_NVLIST_ARRAY) { } else if (type == NV_TYPE_NVLIST_ARRAY) {
nvl = nvlist_get_nvlist_array(nvl, name, nvl = nvlist_get_nvlist_array(nvl, name,