From cf156c8885cee91ece669fafe1d7fda3c81c5fe5 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sat, 31 Oct 2009 03:59:19 +0000 Subject: [PATCH] In lib/krb5/ccache, ensure that function definition headers have function names at the beginnings of lines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23107 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/cc_file.c | 8 ++++---- src/lib/krb5/ccache/t_cc.c | 24 ++++++++++++++++-------- src/lib/krb5/ccache/t_memory.c | 6 ++++-- src/lib/krb5/ccache/t_stdio.c | 6 ++++-- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index d1499bc75..f6429ddff 100644 --- a/src/lib/krb5/ccache/cc_file.c +++ b/src/lib/krb5/ccache/cc_file.c @@ -2429,8 +2429,8 @@ krb5_fcc_last_change_time(krb5_context context, krb5_ccache id, return kret; } -static krb5_error_code KRB5_CALLCONV krb5_fcc_lock(krb5_context context, - krb5_ccache id) +static krb5_error_code KRB5_CALLCONV +krb5_fcc_lock(krb5_context context, krb5_ccache id) { krb5_error_code ret = 0; krb5_fcc_data *data = (krb5_fcc_data *) id->data; @@ -2438,8 +2438,8 @@ static krb5_error_code KRB5_CALLCONV krb5_fcc_lock(krb5_context context, return ret; } -static krb5_error_code KRB5_CALLCONV krb5_fcc_unlock(krb5_context context, - krb5_ccache id) +static krb5_error_code KRB5_CALLCONV +krb5_fcc_unlock(krb5_context context, krb5_ccache id) { krb5_error_code ret = 0; krb5_fcc_data *data = (krb5_fcc_data *) id->data; diff --git a/src/lib/krb5/ccache/t_cc.c b/src/lib/krb5/ccache/t_cc.c index 466fa232f..8d4023feb 100644 --- a/src/lib/krb5/ccache/t_cc.c +++ b/src/lib/krb5/ccache/t_cc.c @@ -43,7 +43,8 @@ krb5_creds test_creds; int debug=0; -static void init_structs(void) +static void +init_structs(void) { static int add=0x12345; @@ -82,7 +83,8 @@ static void init_structs(void) test_creds.authdata = NULL; } -static krb5_error_code init_test_cred(krb5_context context) +static krb5_error_code +init_test_cred(krb5_context context) { krb5_error_code kret; unsigned int i; @@ -165,7 +167,8 @@ cleanup: return kret; } -static void free_test_cred(krb5_context context) +static void +free_test_cred(krb5_context context) { krb5_free_principal(context, test_creds.client); @@ -199,7 +202,8 @@ static void free_test_cred(krb5_context context) #define CHECK_FAIL(experr, kret, msg) \ if (experr != kret) { CHECK(kret, msg);} -static void cc_test(krb5_context context, const char *name, krb5_flags flags) +static void +cc_test(krb5_context context, const char *name, krb5_flags flags) { krb5_ccache id, id2; krb5_creds creds; @@ -318,7 +322,8 @@ static void cc_test(krb5_context context, const char *name, krb5_flags flags) /* * Checks if a credential type is registered with the library */ -static int check_registered(krb5_context context, const char *prefix) +static int +check_registered(krb5_context context, const char *prefix) { char name[300]; krb5_error_code kret; @@ -345,7 +350,8 @@ static int check_registered(krb5_context context, const char *prefix) } -static void do_test(krb5_context context, const char *prefix) +static void +do_test(krb5_context context, const char *prefix) { char name[300]; @@ -356,7 +362,8 @@ static void do_test(krb5_context context, const char *prefix) printf("Test on %s passed\n", name); } -static void test_misc(krb5_context context) +static void +test_misc(krb5_context context) { /* Tests for certain error returns */ krb5_error_code kret; @@ -385,7 +392,8 @@ static void test_misc(krb5_context context) extern const krb5_cc_ops krb5_mcc_ops; extern const krb5_cc_ops krb5_fcc_ops; -int main (void) +int +main(void) { krb5_context context; krb5_error_code kret; diff --git a/src/lib/krb5/ccache/t_memory.c b/src/lib/krb5/ccache/t_memory.c index 5650280eb..924341069 100644 --- a/src/lib/krb5/ccache/t_memory.c +++ b/src/lib/krb5/ccache/t_memory.c @@ -88,7 +88,8 @@ krb5_creds test_creds = { }, }; -void init_test_cred() +void +init_test_cred() { test_creds.client = (krb5_principal) malloc(sizeof(krb5_data *)*3); test_creds.client[0] = &client1; @@ -106,7 +107,8 @@ void init_test_cred() printf("%s returned %d\n", msg, kret); \ }; -void mcc_test() +void +mcc_test() { krb5_ccache id; krb5_creds creds; diff --git a/src/lib/krb5/ccache/t_stdio.c b/src/lib/krb5/ccache/t_stdio.c index f17d50647..0917f5c4f 100644 --- a/src/lib/krb5/ccache/t_stdio.c +++ b/src/lib/krb5/ccache/t_stdio.c @@ -101,7 +101,8 @@ krb5_creds test_creds = { }, }; -void init_test_cred() +void +init_test_cred() { test_creds.client = (krb5_principal) malloc(sizeof(krb5_data *)*3); test_creds.client[0] = &client1; @@ -120,7 +121,8 @@ void init_test_cred() } else printf("%s went ok\n", msg); int flags = 0; -void scc_test() +void +scc_test() { krb5_ccache id; krb5_creds creds; -- 2.26.2