From: Martin Wilck <mwilck@xxxxxxx> The value argument in syfs_attr_set_value should be const char*. Signed-off-by: Martin Wilck <mwilck@xxxxxxx> --- libmultipath/sysfs.c | 2 +- libmultipath/sysfs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmultipath/sysfs.c b/libmultipath/sysfs.c index 9cf03117..97e09977 100644 --- a/libmultipath/sysfs.c +++ b/libmultipath/sysfs.c @@ -154,7 +154,7 @@ ssize_t sysfs_bin_attr_get_value(struct udev_device *dev, const char *attr_name, } ssize_t sysfs_attr_set_value(struct udev_device *dev, const char *attr_name, - char * value, size_t value_len) + const char * value, size_t value_len) { char devpath[PATH_SIZE]; struct stat statbuf; diff --git a/libmultipath/sysfs.h b/libmultipath/sysfs.h index 2588c247..75c0f9c1 100644 --- a/libmultipath/sysfs.h +++ b/libmultipath/sysfs.h @@ -6,7 +6,7 @@ #define _LIBMULTIPATH_SYSFS_H ssize_t sysfs_attr_set_value(struct udev_device *dev, const char *attr_name, - char * value, size_t value_len); + const char * value, size_t value_len); ssize_t sysfs_attr_get_value(struct udev_device *dev, const char *attr_name, char * value, size_t value_len); ssize_t sysfs_bin_attr_get_value(struct udev_device *dev, const char *attr_name, -- 2.11.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel