svn rev #23107: trunk/src/lib/krb5/ccache/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Oct 30 23:59:19 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23107
Commit By: ghudson
Log Message:
In lib/krb5/ccache, ensure that function definition headers have
function names at the beginnings of lines.



Changed Files:
U   trunk/src/lib/krb5/ccache/cc_file.c
U   trunk/src/lib/krb5/ccache/t_cc.c
U   trunk/src/lib/krb5/ccache/t_memory.c
U   trunk/src/lib/krb5/ccache/t_stdio.c
Modified: trunk/src/lib/krb5/ccache/cc_file.c
===================================================================
--- trunk/src/lib/krb5/ccache/cc_file.c	2009-10-31 03:52:01 UTC (rev 23106)
+++ trunk/src/lib/krb5/ccache/cc_file.c	2009-10-31 03:59:19 UTC (rev 23107)
@@ -2429,8 +2429,8 @@
     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 @@
     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;

Modified: trunk/src/lib/krb5/ccache/t_cc.c
===================================================================
--- trunk/src/lib/krb5/ccache/t_cc.c	2009-10-31 03:52:01 UTC (rev 23106)
+++ trunk/src/lib/krb5/ccache/t_cc.c	2009-10-31 03:59:19 UTC (rev 23107)
@@ -43,7 +43,8 @@
 
 int debug=0;
 
-static void init_structs(void)
+static void
+init_structs(void)
 {
     static int add=0x12345;
 
@@ -82,7 +83,8 @@
     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 @@
     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 @@
 #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 @@
 /*
  * 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 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 @@
     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 @@
 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;

Modified: trunk/src/lib/krb5/ccache/t_memory.c
===================================================================
--- trunk/src/lib/krb5/ccache/t_memory.c	2009-10-31 03:52:01 UTC (rev 23106)
+++ trunk/src/lib/krb5/ccache/t_memory.c	2009-10-31 03:59:19 UTC (rev 23107)
@@ -88,7 +88,8 @@
     },
 };
 
-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 @@
         printf("%s returned %d\n", msg, kret);  \
     };
 
-void mcc_test()
+void
+mcc_test()
 {
     krb5_ccache id;
     krb5_creds creds;

Modified: trunk/src/lib/krb5/ccache/t_stdio.c
===================================================================
--- trunk/src/lib/krb5/ccache/t_stdio.c	2009-10-31 03:52:01 UTC (rev 23106)
+++ trunk/src/lib/krb5/ccache/t_stdio.c	2009-10-31 03:59:19 UTC (rev 23107)
@@ -101,7 +101,8 @@
     },
 };
 
-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 @@
     } else printf("%s went ok\n", msg);
 
 int flags = 0;
-void scc_test()
+void
+scc_test()
 {
     krb5_ccache id;
     krb5_creds creds;




More information about the cvs-krb5 mailing list