laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-hlr/+/33161 )
Change subject: cosmetic: gen_ts_55_205_test_sets/func_template.c: Use tab-indent
......................................................................
cosmetic: gen_ts_55_205_test_sets/func_template.c: Use tab-indent
This templates is used for generating C code, so it should use our
normal tab-based code indenting.
Change-Id: I0be7eb2d7b551d7eaaee15994ef37262694819f6
---
M tests/auc/gen_ts_55_205_test_sets/func_template.c
1 file changed, 39 insertions(+), 27 deletions(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, approved
diff --git a/tests/auc/gen_ts_55_205_test_sets/func_template.c
b/tests/auc/gen_ts_55_205_test_sets/func_template.c
index 0865432..c244dd8 100644
--- a/tests/auc/gen_ts_55_205_test_sets/func_template.c
+++ b/tests/auc/gen_ts_55_205_test_sets/func_template.c
@@ -24,43 +24,43 @@
static void {func_name}(void)
{{
- struct osmo_sub_auth_data aud2g;
- struct osmo_sub_auth_data aud3g;
- struct osmo_auth_vector vec;
- int rc;
+ struct osmo_sub_auth_data aud2g;
+ struct osmo_sub_auth_data aud3g;
+ struct osmo_auth_vector vec;
+ int rc;
- comment_start();
+ comment_start();
- aud2g = (struct osmo_sub_auth_data){{ 0 }};
+ aud2g = (struct osmo_sub_auth_data){{ 0 }};
- aud3g = (struct osmo_sub_auth_data){{
- .type = OSMO_AUTH_TYPE_UMTS,
- .algo = OSMO_AUTH_ALG_MILENAGE,
+ aud3g = (struct osmo_sub_auth_data){{
+ .type = OSMO_AUTH_TYPE_UMTS,
+ .algo = OSMO_AUTH_ALG_MILENAGE,
.u.umts.sqn = 31,
- }};
+ }};
- osmo_hexparse("{Ki}",
- aud3g.u.umts.k, sizeof(aud3g.u.umts.k));
- osmo_hexparse("{OPc}",
- aud3g.u.umts.opc, sizeof(aud3g.u.umts.opc));
+ osmo_hexparse("{Ki}",
+ aud3g.u.umts.k, sizeof(aud3g.u.umts.k));
+ osmo_hexparse("{OPc}",
+ aud3g.u.umts.opc, sizeof(aud3g.u.umts.opc));
- osmo_hexparse("{RAND}",
- fake_rand, sizeof(fake_rand));
+ osmo_hexparse("{RAND}",
+ fake_rand, sizeof(fake_rand));
- vec = (struct osmo_auth_vector){{ {{0}} }};
+ vec = (struct osmo_auth_vector){{ {{0}} }};
VERBOSE_ASSERT(aud3g.u.umts.sqn, == 31, "%"PRIu64);
- rc = auc_compute_vectors(&vec, 1, &aud2g, &aud3g, NULL, NULL);
- VERBOSE_ASSERT(rc, == 1, "%d");
+ rc = auc_compute_vectors(&vec, 1, &aud2g, &aud3g, NULL, NULL);
+ VERBOSE_ASSERT(rc, == 1, "%d");
VERBOSE_ASSERT(aud3g.u.umts.sqn, == 32, "%"PRIu64);
- VEC_IS(&vec,
- " rand: {RAND}\n"
- " ck: {MIL3G-CK}\n"
- " ik: {MIL3G-IK}\n"
- " res: {MIL3G-RES}0000000000000000\n"
- " kc: {Kc}\n"
- " sres: {SRES#1}\n"
- );
+ VEC_IS(&vec,
+ " rand: {RAND}\n"
+ " ck: {MIL3G-CK}\n"
+ " ik: {MIL3G-IK}\n"
+ " res: {MIL3G-RES}0000000000000000\n"
+ " kc: {Kc}\n"
+ " sres: {SRES#1}\n"
+ );
comment_end();
}}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-hlr/+/33161
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: I0be7eb2d7b551d7eaaee15994ef37262694819f6
Gerrit-Change-Number: 33161
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged