Displaying 1 result from an estimated 1 matches for "encode_size".
2013 Oct 26
2
[PATCH] 1. changes for vdiskadm on illumos based platform
...nvlist[0] != NV_ENCODE_XDR || nvlist[1] != HOST_ENDIAN)
return (1);
- nvlist += 4;
- *out = nvlist;
+ *out = nvlist + 4;
return (0);
}
@@ -1033,7 +1173,7 @@ nvlist_array(char *nvlist, int index)
/* skip the header, nvl_version, and nvl_nvflag */
nvlist = nvlist + 4 * 2;
- while ((encode_size = BSWAP_32(*(uint32_t *)nvlist)))
+ while (encode_size = BSWAP_32(*(uint32_t *)nvlist))
nvlist += encode_size; /* goto the next nvpair */
nvlist = nvlist + 4 * 2; /* skip the ending 2 zeros - 8 bytes */
@@ -1042,69 +1182,159 @@ nvlist_array(char *nvlist, int index)
return (nvlist);
}...