aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilad Arnold <garnold@google.com>2015-08-27 22:06:06 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-27 22:06:06 +0000
commit0e341866a3534feb73791bc0f1b768c3bd1c3f1f (patch)
treef2fab569f58d149a40bed11298e76c9be8df34ce
parent0664a4b749ec999c392300d50c1c5dfff9212cac (diff)
parente6832d33664c3188b623bf6f058029f229d364c3 (diff)
downloadtlsdate-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.h6
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) { \