Deleted Added
full compact
nvpair.c (168404) nvpair.c (174047)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1904 unchanged lines hidden (view full) ---

1913 */
1914static int
1915nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding,
1916 int nvs_op)
1917{
1918 int err = 0;
1919 nvstream_t nvs;
1920 int nvl_endian;
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1904 unchanged lines hidden (view full) ---

1913 */
1914static int
1915nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding,
1916 int nvs_op)
1917{
1918 int err = 0;
1919 nvstream_t nvs;
1920 int nvl_endian;
1921#ifdef _LITTLE_ENDIAN
1921#if BYTE_ORDER == _LITTLE_ENDIAN
1922 int host_endian = 1;
1923#else
1924 int host_endian = 0;
1925#endif /* _LITTLE_ENDIAN */
1926 nvs_header_t *nvh = (void *)buf;
1927
1928 if (buflen == NULL || nvl == NULL ||
1929 (nvs.nvs_priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv) == NULL)

--- 1024 unchanged lines hidden ---
1922 int host_endian = 1;
1923#else
1924 int host_endian = 0;
1925#endif /* _LITTLE_ENDIAN */
1926 nvs_header_t *nvh = (void *)buf;
1927
1928 if (buflen == NULL || nvl == NULL ||
1929 (nvs.nvs_priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv) == NULL)

--- 1024 unchanged lines hidden ---