From: Jes Sorensen Date: Tue, 16 May 2017 17:29:46 +0000 (-0400) Subject: super-ddf: sysfs_read() takes a pointer as device name argument X-Git-Tag: mdadm-4.1-rc1~124 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=a0628abf2bf87c69bec3384f90aae2398a8e64aa super-ddf: sysfs_read() takes a pointer as device name argument Signed-off-by: Jes Sorensen --- diff --git a/super-ddf.c b/super-ddf.c index ac14017b..50197a8f 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -3557,7 +3557,7 @@ static int load_super_ddf_all(struct supertype *st, int fd, char nm[20]; int dfd; - sra = sysfs_read(fd, 0, GET_LEVEL|GET_VERSION|GET_DEVS|GET_STATE); + sra = sysfs_read(fd, NULL, GET_LEVEL|GET_VERSION|GET_DEVS|GET_STATE); if (!sra) return 1; if (sra->array.major_version != -1 ||