From aae236245596743b6aff4b1b294c0e8d97b8190f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 7 Dec 2011 11:35:02 +0100 Subject: auth_core: don't use anonymous unions to make certain gcc versions happy --- tests/auth/milenage_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auth') diff --git a/tests/auth/milenage_test.c b/tests/auth/milenage_test.c index a143d26d..da7c800a 100644 --- a/tests/auth/milenage_test.c +++ b/tests/auth/milenage_test.c @@ -27,7 +27,7 @@ static void dump_auth_vec(struct osmo_auth_vector *vec) static struct osmo_sub_auth_data test_aud = { .type = OSMO_AUTH_TYPE_UMTS, .algo = OSMO_AUTH_ALG_MILENAGE, - .umts = { + .u.umts = { .opc = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }, .k = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, @@ -70,7 +70,7 @@ int main(int argc, char **argv) if (rc < 0) { printf("AUTS failed\n"); } else { - printf("AUTS success: SEQ.MS = %lu\n", test_aud.umts.sqn); + printf("AUTS success: SEQ.MS = %lu\n", test_aud.u.umts.sqn); } exit(0); -- cgit v1.2.3