| 1756 | } |
| 1757 | |
| 1758 | void |
| 1759 | nvlist_move_bool_array(nvlist_t *nvl, const char *name, bool *value, |
| 1760 | size_t nitems) |
| 1761 | { |
| 1762 | nvpair_t *nvp; |
| 1763 | |
| 1764 | if (nvlist_error(nvl) != 0) { |
| 1765 | nv_free(value); |
| 1766 | ERRNO_SET(nvlist_error(nvl)); |
| 1767 | return; |
| 1768 | } |
| 1769 | |
| 1770 | nvp = nvpair_move_bool_array(name, value, nitems); |
| 1771 | if (nvp == NULL) { |
| 1772 | nvl->nvl_error = ERRNO_OR_DEFAULT(ENOMEM); |
| 1773 | ERRNO_SET(nvl->nvl_error); |
| 1774 | } else { |
| 1775 | (void)nvlist_move_nvpair(nvl, nvp); |
| 1776 | } |
| 1777 | } |
| 1778 | |
| 1779 | void |
| 1780 | nvlist_move_string_array(nvlist_t *nvl, const char *name, char **value, |
nothing calls this directly
no test coverage detected