]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/vdev_label.c
Add `const` to nvlist functions to properly expose their real behavior
[mirror_zfs.git] / module / zfs / vdev_label.c
index 6252ee135b8378bce8606f6436a23550ec24459b..a62804ea8f492cfc97a4712903e3a295e248bc9c 100644 (file)
@@ -669,7 +669,7 @@ vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats,
 
                if (idx) {
                        fnvlist_add_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
-                           child, idx);
+                           (const nvlist_t * const *)child, idx);
                }
 
                for (c = 0; c < idx; c++)