diff --git a/lib/libzutil/os/windows/zutil_device_path_os.c b/lib/libzutil/os/windows/zutil_device_path_os.c index 445fdc434a88..979e81034588 100644 --- a/lib/libzutil/os/windows/zutil_device_path_os.c +++ b/lib/libzutil/os/windows/zutil_device_path_os.c @@ -40,7 +40,7 @@ * Note: The caller must free the returned string. */ char * -zfs_strip_partition(char *dev) +zfs_strip_partition(const char *dev) { unsigned int disk, slice; char *partless; @@ -119,8 +119,8 @@ zfs_append_partition(char *path, size_t max_len) * On FreeBSD we only want to remove "/dev/" from the beginning of * paths if present. */ -char * -zfs_strip_path(char *path) +const char * +zfs_strip_path(const char *path) { char *r; r = strrchr(path, '/');