diff options
author | Bernd Schubert <bernd.schubert@itwm.fraunhofer.de> | 2013-06-18 11:09:16 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-06-19 02:03:12 +0200 |
commit | f8fcf7a1c54c7c6b9b75a3388a73435db198bd71 (patch) | |
tree | d3d71d012edc868a8883c82415a4b5648cb51b73 /util.c | |
parent | Makefile: add "-O3" to WARN_UNUSED options. (diff) | |
download | mdadm-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.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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; |