summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>2013-06-18 11:09:16 +0200
committerNeilBrown <neilb@suse.de>2013-06-19 02:03:12 +0200
commitf8fcf7a1c54c7c6b9b75a3388a73435db198bd71 (patch)
treed3d71d012edc868a8883c82415a4b5648cb51b73 /util.c
parentMakefile: add "-O3" to WARN_UNUSED options. (diff)
downloadmdadm-f8fcf7a1c54c7c6b9b75a3388a73435db198bd71.tar.xz
mdadm-f8fcf7a1c54c7c6b9b75a3388a73435db198bd71.zip
raid6check: Fix build of raid6check
After recent git pull 'make raid6check' did not work anymore, as sysfs_read() was called with a wrong argument and as check_env() was used by use_udev(), but not defined. Replace sysfs_read(..., -1, ...) by sysfs_read(..., NULL, ...) Move check_env() from util.c to lib.c Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'util.c')
-rw-r--r--util.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/util.c b/util.c
index 3ac63e3a..7da69ac1 100644
--- a/util.c
+++ b/util.c
@@ -1798,16 +1798,6 @@ int start_mdmon(char *devnm)
return 0;
}
-int check_env(char *name)
-{
- char *val = getenv(name);
-
- if (val && atoi(val) == 1)
- return 1;
-
- return 0;
-}
-
__u32 random32(void)
{
__u32 rv;