summaryrefslogtreecommitdiffstats
path: root/src/tests/threads
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/threads')
-rw-r--r--src/tests/threads/init_ctx.c12
-rw-r--r--src/tests/threads/profread.c20
2 files changed, 16 insertions, 16 deletions
diff --git a/src/tests/threads/init_ctx.c b/src/tests/threads/init_ctx.c
index 92c0ef6f1..7a59a1dd4 100644
--- a/src/tests/threads/init_ctx.c
+++ b/src/tests/threads/init_ctx.c
@@ -165,12 +165,12 @@ static void run_iterations (struct resource_info *r)
r->start_time = now ();
for (i = 0; i < iter_count; i++) {
- err = krb5_init_context(&ctx);
- if (err) {
- com_err(prog, err, "initializing krb5 context");
- exit(1);
- }
- krb5_free_context(ctx);
+ err = krb5_init_context(&ctx);
+ if (err) {
+ com_err(prog, err, "initializing krb5 context");
+ exit(1);
+ }
+ krb5_free_context(ctx);
}
r->end_time = now ();
}
diff --git a/src/tests/threads/profread.c b/src/tests/threads/profread.c
index a9ce3d6b2..3909f236e 100644
--- a/src/tests/threads/profread.c
+++ b/src/tests/threads/profread.c
@@ -168,22 +168,22 @@ static void run_iterations (struct resource_info *r)
err = krb5_init_context(&ctx);
if (err) {
- com_err(prog, err, "initializing krb5 context");
- exit(1);
+ com_err(prog, err, "initializing krb5 context");
+ exit(1);
}
err = krb5_get_profile(ctx, &prof);
if (err) {
- com_err(prog, err, "fetching profile from context");
- exit(1);
+ com_err(prog, err, "fetching profile from context");
+ exit(1);
}
r->start_time = now ();
for (i = 0; i < iter_count; i++) {
- int ival;
- err = profile_get_integer(prof, "one", "two", "three", 42, &ival);
- if (err) {
- com_err(prog, err, "fetching value from profile");
- exit(1);
- }
+ int ival;
+ err = profile_get_integer(prof, "one", "two", "three", 42, &ival);
+ if (err) {
+ com_err(prog, err, "fetching value from profile");
+ exit(1);
+ }
}
r->end_time = now ();
profile_release (prof);