libnm/tests: fix compilation of test-general

../libnm/tests/test-general.c: In function ‘test_fixup_vendor_string’:
    ../libnm/tests/test-general.c:70:3: error: initializer element is not constant
       T_DATA ("3Com", "3Com"),
       ^
    ../libnm/tests/test-general.c:70:3: error: (near initialization for ‘data[0]’)
    ../libnm/tests/test-general.c: In function ‘test_fixup_product_string’:
    ../libnm/tests/test-general.c:365:3: error: initializer element is not constant
       T_DATA  ("10/100BaseTX [RTL81xx]", "RTL81xx"),
    ...

Fixes: 817fce917b
This commit is contained in:
Thomas Haller
2018-02-26 14:21:34 +01:00
parent 817fce917b
commit 65049f6736

View File

@@ -57,11 +57,11 @@ _test_fixup_string (const TestFixupData *data,
}
#define T_DATA(_desc, _expected) \
((TestFixupData) { \
{ \
.desc = _desc, \
.expected = _expected, \
.line = __LINE__, \
})
}
static void
test_fixup_vendor_string (void)