]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
add CFLAGS to mdassemble build and fix a couple of non-returning functions
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index 279bfd77287c69b121667165f8608fa7a09fa1e9..1a6106a6428674dccb4cfb4c9fd16a58fd0b22df 100644 (file)
--- a/util.c
+++ b/util.c
@@ -375,7 +375,7 @@ int add_dev_1(const char *name, const struct stat *stb, int flag)
 }
 int nftw(const char *path, int (*han)(const char *name, const struct stat *stb, int flag, struct FTW *s), int nopenfd, int flags)
 {
-       ftw(path, add_dev_1, nopenfd);
+       return ftw(path, add_dev_1, nopenfd);
 }
 #endif