diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-12-07 11:35:02 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-12-07 11:35:02 +0100 |
commit | aae236245596743b6aff4b1b294c0e8d97b8190f (patch) | |
tree | 7a84960ab3e424930676107f33ad23981b964834 /tests | |
parent | 57143a43619ccb229b35b4b4c7def737cb41a40a (diff) |
auth_core: don't use anonymous unions to make certain gcc versions happy
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auth/milenage_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |