[PATCH 1/2] mem: Remove array_size dependency

David Gibson <[email protected]>
Newsgroups org.ozlabs.lists.ccan
Message-ID <[email protected]>
The mem module declares array_size as a test dependency, and includes it in
test/api.c, but doesn't actually use it.  This removes the unneeded
dependency.

Signed-off-by: David Gibson <[email protected]>
---
 ccan/mem/_info      | 1 -
 ccan/mem/test/api.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/ccan/mem/_info b/ccan/mem/_info
index 19b2228..e37b217 100644
--- a/ccan/mem/_info
+++ b/ccan/mem/_info
@@ -22,7 +22,6 @@ int main(int argc, char *argv[])
 	}
 
 	if (strcmp(argv[1], "testdepends") == 0) {
-		printf("ccan/array_size");
 		return 0;
 	}
 
diff --git a/ccan/mem/test/api.c b/ccan/mem/test/api.c
index 2ee15c5..d97ab28 100644
--- a/ccan/mem/test/api.c
+++ b/ccan/mem/test/api.c
@@ -1,4 +1,3 @@
-#include <ccan/array_size/array_size.h>
 #include <ccan/mem/mem.h>
 #include <ccan/tap/tap.h>
 
-- 
2.4.3

_______________________________________________
ccan mailing list
[email protected]
https://lists.ozlabs.org/listinfo/ccan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.