summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-05-08 17:12:33 +1000
committerNeil Brown <neilb@suse.de>2007-05-08 17:12:33 +1000
commit8e22992203e25ae0b7bdf41cf2c53b11024d64cc (patch)
treece2e70fe487fe736e9b8996897f910bf604f6486 /util.c
parente003092c073ffab8694a1043df15a62dd3634102 (diff)
downloadmdadm-8e22992203e25ae0b7bdf41cf2c53b11024d64cc.tar.gz
mdadm-8e22992203e25ae0b7bdf41cf2c53b11024d64cc.tar.xz
mdadm-8e22992203e25ae0b7bdf41cf2c53b11024d64cc.zip
Remove bogus add_dev definition.
If nether ftw nor nftw are available, add_dev gets defined twice. Fix that...
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/util.c b/util.c
index 58449d5..f57613f 100644
--- a/util.c
+++ b/util.c
@@ -468,10 +468,6 @@ int nftw(const char *path, int (*han)(const char *name, const struct stat *stb,
return ftw(path, add_dev_1, nopenfd);
}
#else
-int add_dev(const char *name, const struct stat *stb, int flag, struct FTW *s)
-{
- return 0;
-}
int nftw(const char *path, int (*han)(const char *name, const struct stat *stb, int flag, struct FTW *s), int nopenfd, int flags)
{
return 0;