summaryrefslogtreecommitdiffstats
path: root/platform-intel.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-08-05 05:13:02 +0200
committerNeilBrown <neilb@suse.de>2010-08-05 05:13:02 +0200
commitf21e18ca8969f21549c646096f354eac57cd53a8 (patch)
tree5e0b0474075ba8f629860964914fe18a6892ccd4 /platform-intel.c
parentDetail: clean up handing of the 'info' we load from superblock. (diff)
downloadmdadm-f21e18ca8969f21549c646096f354eac57cd53a8.tar.xz
mdadm-f21e18ca8969f21549c646096f354eac57cd53a8.zip
Compile with -Wextra by default
This produced lots of warning, some of which pointed to actual bugs. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'platform-intel.c')
-rw-r--r--platform-intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform-intel.c b/platform-intel.c
index 30f79149..61749085 100644
--- a/platform-intel.c
+++ b/platform-intel.c
@@ -65,7 +65,7 @@ struct sys_dev *find_driver_devices(const char *bus, const char *driver)
sprintf(path, "/sys/bus/%s/drivers/%s/%s/subsystem",
bus, driver, de->d_name);
n = readlink(path, link, sizeof(link));
- if (n < 0 || n >= sizeof(link))
+ if (n < 0 || n >= (int)sizeof(link))
continue;
link[n] = '\0';
c = strrchr(link, '/');