diff mbox

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

Message ID 1470727873-10502-2-git-send-email-hare@suse.de (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

Hannes Reinecke Aug. 9, 2016, 7:31 a.m. UTC
We should be using 'unsigned long' for the variable preferred.

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

Patch

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);