All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Christophe Varoqui <christophe.varoqui@gmail.com>
Cc: dm-devel@redhat.com, Xose Vazquez Perez <xose.vazquez@gmail.com>,
	Hannes Reinecke <hare@suse.com>
Subject: [PATCH 1/3] libmultipath/discovery.c: use 'unsigned long' instead of 'unsigned int'
Date: Tue,  9 Aug 2016 09:31:11 +0200	[thread overview]
Message-ID: <1470727873-10502-2-git-send-email-hare@suse.de> (raw)
In-Reply-To: <1470727873-10502-1-git-send-email-hare@suse.de>

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

  reply	other threads:[~2016-08-09  7:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-09  7:31 [PATCH 0/3] Clang fixes Hannes Reinecke
2016-08-09  7:31 ` Hannes Reinecke [this message]
2016-08-09  7:31 ` [PATCH 2/3] libmultipath/parser.c: correctly terminate buffer Hannes Reinecke
2016-08-09  7:31 ` [PATCH 3/3] multipath: fixup check for out-of-scope maps Hannes Reinecke
2016-08-09 15:13 ` [PATCH 0/3] Clang fixes Christophe Varoqui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470727873-10502-2-git-send-email-hare@suse.de \
    --to=hare@suse.de \
    --cc=christophe.varoqui@gmail.com \
    --cc=dm-devel@redhat.com \
    --cc=hare@suse.com \
    --cc=xose.vazquez@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.