[dm-devel] [PATCH 1/3] libmultipath/discovery.c: use 'unsigned long' instead of 'unsigned int'

Hannes Reinecke hare at suse.de
Tue Aug 9 07:31:11 UTC 2016


We should be using 'unsigned long' for the variable preferred.

Signed-off-by: Hannes Reinecke <hare at suse.com>
---
 libmultipath/discovery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 1fb4db4..38ab038 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -491,7 +491,7 @@ sysfs_get_asymmetric_access_state(struct path *pp, char *buff, int buflen)
 {
 	struct udev_device *parent = pp->udev;
 	char value[16], *eptr;
-	unsigned int preferred;
+	unsigned long preferred;
 
 	while (parent) {
 		const char *subsys = udev_device_get_subsystem(parent);
-- 
2.6.6




More information about the dm-devel mailing list