From f8fcf7a1c54c7c6b9b75a3388a73435db198bd71 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Tue, 18 Jun 2013 11:09:16 +0200 Subject: 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 Signed-off-by: NeilBrown --- util.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'util.c') 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; -- cgit v1.2.3