summaryrefslogtreecommitdiffstats
path: root/lib/pb-config/storage-test.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-13 16:00:51 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 13:14:59 +0800
commit2817d0f575cd99bfc040e944e75aa2afd38597b7 (patch)
treec806eaf462cb58044753e57ed7656eb70893c9b5 /lib/pb-config/storage-test.c
parent7f1729734336f78ce227a0440c1a2957ac94fb91 (diff)
downloadtalos-petitboot-2817d0f575cd99bfc040e944e75aa2afd38597b7.tar.gz
talos-petitboot-2817d0f575cd99bfc040e944e75aa2afd38597b7.zip
lib: Add array-size header
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/pb-config/storage-test.c')
-rw-r--r--lib/pb-config/storage-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pb-config/storage-test.c b/lib/pb-config/storage-test.c
index 3114712..3ce58ef 100644
--- a/lib/pb-config/storage-test.c
+++ b/lib/pb-config/storage-test.c
@@ -4,6 +4,8 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <array-size/array-size.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 = {
OpenPOWER on IntegriCloud