]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/dhcp_options.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / bsd / netinet / dhcp_options.c
index c38c6a6fa852a151116e2ff203b1ad68fb063221..2e2d4581d4ac0647a3f23d2fe22941d565adc47f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002-2016 Apple Inc. All rights reserved.
+ * Copyright (c) 2002-2019 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  *
@@ -457,20 +457,20 @@ struct test {
 };
 
 struct test tests[] = {
-       { "empty", test_empty, sizeof(test_empty), TRUE },
-       { "simple", test_simple, sizeof(test_simple), TRUE },
-       { "vendor", test_vendor, sizeof(test_vendor), TRUE },
-       { "no_end", test_no_end, sizeof(test_no_end), TRUE },
-       { "no magic", test_no_magic, sizeof(test_no_magic), FALSE },
-       { "short", test_short, sizeof(test_short), FALSE },
-       { NULL, NULL, 0, FALSE },
+       { .name = "empty", .data = test_empty, .len = sizeof(test_empty), .result = TRUE },
+       { .name = "simple", .data = test_simple, .len = sizeof(test_simple), .result = TRUE },
+       { .name = "vendor", .data = test_vendor, .len = sizeof(test_vendor), .result = TRUE },
+       { .name = "no_end", .data = test_no_end, .len = sizeof(test_no_end), .result = TRUE },
+       { .name = "no magic", .data = test_no_magic, .len = sizeof(test_no_magic), .result = FALSE },
+       { .name = "short", .data = test_short, .len = sizeof(test_short), .result =  FALSE },
+       { .name = NULL, .data = NULL, .len = 0, .result = FALSE },
 };
 
 
 static char buf[2048];
 
 int
-main()
+main(void)
 {
        int         i;
        dhcpol_t    options;