X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fpb-config%2Fstorage-test.c;h=3ce58ef0a03c30b39ea44ac9b0abbfa79a58eea1;hp=bdb1d0dec2153c46d7c5a49f25dcdef13a7a6ad0;hb=2817d0f575cd99bfc040e944e75aa2afd38597b7;hpb=2b41985dde73e71daad90c36fa5d06c199da3ae1 diff --git a/lib/pb-config/storage-test.c b/lib/pb-config/storage-test.c index bdb1d0d..3ce58ef 100644 --- a/lib/pb-config/storage-test.c +++ b/lib/pb-config/storage-test.c @@ -4,6 +4,8 @@ #include #include +#include + #include "pb-config.h" #include "storage.h" @@ -22,14 +24,15 @@ struct interface_config net2 = { }; struct interface_config *interface_configs[] = { &net1, &net2 }; - -#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) +const char *dns_servers[] = { "192.168.1.1", "192.168.1.2" }; struct config test_config = { .autoboot_enabled = true, .network = { .interfaces = interface_configs, .n_interfaces = ARRAY_SIZE(interface_configs), + .dns_servers = dns_servers, + .n_dns_servers = ARRAY_SIZE(dns_servers), } };