diff options
author | Gilad Arnold <garnold@google.com> | 2015-08-27 22:06:06 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-27 22:06:06 +0000 |
commit | 0e341866a3534feb73791bc0f1b768c3bd1c3f1f (patch) | |
tree | f2fab569f58d149a40bed11298e76c9be8df34ce | |
parent | 0664a4b749ec999c392300d50c1c5dfff9212cac (diff) | |
parent | e6832d33664c3188b623bf6f058029f229d364c3 (diff) | |
download | tlsdate-0e341866a3534feb73791bc0f1b768c3bd1c3f1f.tar.gz |
am e6832d33: Eliminate GNU old-style field initialization.
* commit 'e6832d33664c3188b623bf6f058029f229d364c3':
Eliminate GNU old-style field initialization.
-rw-r--r-- | src/test_harness.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test_harness.h b/src/test_harness.h index 3fd118a..00a7bee 100644 --- a/src/test_harness.h +++ b/src/test_harness.h @@ -204,7 +204,7 @@ #define _TEST(test_name) \ static void test_name(struct __test_metadata *_metadata); \ static struct __test_metadata _##test_name##_object = \ - { name: "global." #test_name, fn: &test_name }; \ + { .name = "global." #test_name, .fn = &test_name }; \ static void __attribute__((constructor)) _register_##test_name(void) { \ __register_test(&_##test_name##_object); \ } \ @@ -254,8 +254,8 @@ fixture_name##_teardown(_metadata, &self); \ } \ static struct __test_metadata _##fixture_name##_##test_name##_object = { \ - name: #fixture_name "." #test_name, \ - fn: &wrapper_##fixture_name##_##test_name, \ + .name = #fixture_name "." #test_name, \ + .fn = &wrapper_##fixture_name##_##test_name, \ }; \ static void __attribute__((constructor)) \ _register_##fixture_name##_##test_name(void) { \ |