[ccan] [PATCH 1/3] mem: Remove array_size dependency

David Gibson david at gibson.dropbear.id.au
Thu Sep 10 07:54:53 AEST 2015


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 <david at gibson.dropbear.id.au>
---
 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 6389e35..b95a575 100644
--- a/ccan/mem/_info
+++ b/ccan/mem/_info
@@ -23,7 +23,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 9ec226d..d0178c3 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



More information about the ccan mailing list