summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorAnna Czarnowska <anna.czarnowska@intel.com>2010-11-26 11:49:33 +0100
committerNeilBrown <neilb@suse.de>2010-11-28 23:56:28 +0100
commit0f0749ad93e82e4e46776cff92a7bb3692db5ecd (patch)
tree5f8001e5be3986d3fd16f7537c2c01eab6b4429a /util.c
parentMonitor: few bug fixes for spare migration (diff)
downloadmdadm-0f0749ad93e82e4e46776cff92a7bb3692db5ecd.tar.xz
mdadm-0f0749ad93e82e4e46776cff92a7bb3692db5ecd.zip
Monitor: devid should be dev_t
For consistency with makedev(). int is not sufficient. Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 2a206448..fde58ebb 100644
--- a/util.c
+++ b/util.c
@@ -1123,7 +1123,7 @@ struct supertype *super_by_fd(int fd, char **subarrayp)
}
#endif /* !defined(MDASSEMBLE) || defined(MDASSEMBLE) && defined(MDASSEMBLE_AUTO) */
-int dev_size_from_id(unsigned int id, unsigned long long *size)
+int dev_size_from_id(dev_t id, unsigned long long *size)
{
char buf[20];
int fd;