]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove bogus add_dev definition.
authorNeil Brown <neilb@suse.de>
Tue, 8 May 2007 07:12:33 +0000 (17:12 +1000)
committerNeil Brown <neilb@suse.de>
Tue, 8 May 2007 07:12:33 +0000 (17:12 +1000)
If nether ftw nor nftw are available, add_dev gets defined twice.
Fix that...

util.c

diff --git a/util.c b/util.c
index 58449d52ff449ab5fcaf9e33d6b6a732446dfb52..f57613f533a993f4e72b9aeea6bbb52cc451eb8c 100644 (file)
--- 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;