diff options
author | NeilBrown <neilb@suse.de> | 2010-08-05 05:13:02 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-05 05:13:02 +0200 |
commit | f21e18ca8969f21549c646096f354eac57cd53a8 (patch) | |
tree | 5e0b0474075ba8f629860964914fe18a6892ccd4 /platform-intel.c | |
parent | Detail: clean up handing of the 'info' we load from superblock. (diff) | |
download | mdadm-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.c | 2 |
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, '/'); |