From 4ba58f9b6b7ccb372f09e31ee3d302ffafd50b15 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 4 Sep 2011 23:52:34 +0000 Subject: Reindent per krb5-batch-reindent.el. Some minor reformatting added in places to avoid exceeding 80 columns. Used Emacs 22.1 built-in C mode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25144 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/threads/init_ctx.c | 12 ++++++------ src/tests/threads/profread.c | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/tests/threads') 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); -- cgit