about summary refs log tree commit diff
path: root/src/core/dhcp/tests
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2025-02-12 13:46:50 +0100
committerMichael Biebl <biebl@debian.org>2025-02-12 13:46:50 +0100
commit8bdf070ff046f482f6eb5e2b15ebc216f5d1e3da (patch)
treef706478d189d54c6532e8863d4b0d5ff5575af60 /src/core/dhcp/tests
parent818258cf34b83fbc754633295e1052d4752d7b15 (diff)
New upstream version 1.51.90 upstream/1.51.90
Diffstat (limited to 'src/core/dhcp/tests')
-rw-r--r--src/core/dhcp/tests/test-dhcp-dhclient.c2
-rw-r--r--src/core/dhcp/tests/test-dhcp-utils.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/core/dhcp/tests/test-dhcp-dhclient.c b/src/core/dhcp/tests/test-dhcp-dhclient.c
index 0edcc296..6a7b7185 100644
--- a/src/core/dhcp/tests/test-dhcp-dhclient.c
+++ b/src/core/dhcp/tests/test-dhcp-dhclient.c
@@ -1023,7 +1023,7 @@ _check_duid_impl(const guint8 *duid_bin,
     g_assert_cmpint(contents_len, ==, strlen(contents));
 }
 
-#define _DUID(...) ((const guint8[]){__VA_ARGS__})
+#define _DUID(...) ((const guint8[]) {__VA_ARGS__})
 
 #define _check_duid(duid, enforce_duid, old_content, new_content) \
     _check_duid_impl((duid), sizeof(duid), (enforce_duid), (old_content), (new_content))
diff --git a/src/core/dhcp/tests/test-dhcp-utils.c b/src/core/dhcp/tests/test-dhcp-utils.c
index 1c6d6302..b81523e1 100644
--- a/src/core/dhcp/tests/test-dhcp-utils.c
+++ b/src/core/dhcp/tests/test-dhcp-utils.c
@@ -194,16 +194,16 @@ test_parse_search_list(void)
     guint8 *data;
     char  **domains;
 
-    data    = (guint8[]){0x05, 'l', 'o', 'c', 'a', 'l', 0x00};
+    data    = (guint8[]) {0x05, 'l', 'o', 'c', 'a', 'l', 0x00};
     domains = nm_dhcp_lease_data_parse_search_list(data, 7, NULL, 0, 0);
     g_assert(domains);
     g_assert_cmpint(g_strv_length(domains), ==, 1);
     g_assert_cmpstr(domains[0], ==, "local");
     g_strfreev(domains);
 
-    data    = (guint8[]){0x04, 't',  'e',  's', 't', 0x07, 'e',  'x',  'a',  'm', 'p', 'l',
-                         'e',  0x03, 'c',  'o', 'm', 0x00, 0xc0, 0x05, 0x03, 'a', 'b', 'c',
-                         0xc0, 0x0d, 0x06, 'f', 'o', 'o',  'b',  'a',  'r',  0x00};
+    data    = (guint8[]) {0x04, 't',  'e',  's', 't', 0x07, 'e',  'x',  'a',  'm', 'p', 'l',
+                          'e',  0x03, 'c',  'o', 'm', 0x00, 0xc0, 0x05, 0x03, 'a', 'b', 'c',
+                          0xc0, 0x0d, 0x06, 'f', 'o', 'o',  'b',  'a',  'r',  0x00};
     domains = nm_dhcp_lease_data_parse_search_list(data, 34, NULL, 0, 0);
     g_assert(domains);
     g_assert_cmpint(g_strv_length(domains), ==, 4);
@@ -213,7 +213,7 @@ test_parse_search_list(void)
     g_assert_cmpstr(domains[3], ==, "foobar");
     g_strfreev(domains);
 
-    data = (guint8[]){
+    data = (guint8[]) {
         0x40,
         'b',
         'a',
@@ -222,7 +222,7 @@ test_parse_search_list(void)
     domains = nm_dhcp_lease_data_parse_search_list(data, 4, NULL, 0, 0);
     g_assert(!domains);
 
-    data = (guint8[]){
+    data = (guint8[]) {
         0x04,
         'o',
         'k',