]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-config/storage-test.c
lib: consolidate util macros in util/util.h
[petitboot] / lib / pb-config / storage-test.c
index 3114712b4825cb60625ac3d76640004e531fd2fa..e4a0e5acce3c041534138ad06326fa9fe909507e 100644 (file)
@@ -4,6 +4,8 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
+#include <util/util.h>
+
 #include "pb-config.h"
 #include "storage.h"
 
@@ -24,8 +26,6 @@ struct interface_config net2 = {
 struct interface_config *interface_configs[] = { &net1, &net2 };
 const char *dns_servers[] = { "192.168.1.1", "192.168.1.2" };
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
-
 struct config test_config = {
        .autoboot_enabled = true,
        .network = {