svn rev #23157: trunk/src/lib/krb5/rcache/

ghudson@MIT.EDU ghudson at MIT.EDU
Thu Nov 12 19:28:30 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23157
Commit By: ghudson
Log Message:
In lib/krb5/rcache, ensure that function definition headers put the
function name at the beginning of the line.



Changed Files:
U   trunk/src/lib/krb5/rcache/rc_base.c
U   trunk/src/lib/krb5/rcache/t_replay.c
Modified: trunk/src/lib/krb5/rcache/rc_base.c
===================================================================
--- trunk/src/lib/krb5/rcache/rc_base.c	2009-11-12 23:45:25 UTC (rev 23156)
+++ trunk/src/lib/krb5/rcache/rc_base.c	2009-11-13 00:28:30 UTC (rev 23157)
@@ -24,11 +24,14 @@
 static struct krb5_rc_typelist *typehead = &krb5_rc_typelist_dfl;
 static k5_mutex_t rc_typelist_lock = K5_MUTEX_PARTIAL_INITIALIZER;
 
-int krb5int_rc_finish_init(void)
+int
+krb5int_rc_finish_init(void)
 {
     return k5_mutex_finish_init(&rc_typelist_lock);
 }
-void krb5int_rc_terminate(void)
+
+void
+krb5int_rc_terminate(void)
 {
     struct krb5_rc_typelist *t, *t_next;
     k5_mutex_destroy(&rc_typelist_lock);
@@ -38,8 +41,8 @@
     }
 }
 
-krb5_error_code krb5_rc_register_type(krb5_context context,
-                                      const krb5_rc_ops *ops)
+krb5_error_code
+krb5_rc_register_type(krb5_context context, const krb5_rc_ops *ops)
 {
     struct krb5_rc_typelist *t;
     krb5_error_code err;
@@ -64,8 +67,8 @@
     return 0;
 }
 
-krb5_error_code krb5_rc_resolve_type(krb5_context context, krb5_rcache *idptr,
-                                     char *type)
+krb5_error_code
+krb5_rc_resolve_type(krb5_context context, krb5_rcache *idptr, char *type)
 {
     struct krb5_rc_typelist *t;
     krb5_error_code err;
@@ -104,7 +107,8 @@
     return id->ops->type;
 }
 
-char * krb5_rc_default_type(krb5_context context)
+char *
+krb5_rc_default_type(krb5_context context)
 {
     char *s;
     if ((s = getenv("KRB5RCACHETYPE")))
@@ -113,7 +117,8 @@
         return "dfl";
 }
 
-char * krb5_rc_default_name(krb5_context context)
+char *
+krb5_rc_default_name(krb5_context context)
 {
     char *s;
     if ((s = getenv("KRB5RCACHENAME")))
@@ -144,8 +149,9 @@
 }
 
 
-krb5_error_code krb5_rc_resolve_full(krb5_context context, krb5_rcache *idptr,
-                                     char *string_name)
+krb5_error_code
+krb5_rc_resolve_full(krb5_context context, krb5_rcache *idptr,
+                     char *string_name)
 {
     char *type;
     char *residual;

Modified: trunk/src/lib/krb5/rcache/t_replay.c
===================================================================
--- trunk/src/lib/krb5/rcache/t_replay.c	2009-11-12 23:45:25 UTC (rev 23156)
+++ trunk/src/lib/krb5/rcache/t_replay.c	2009-11-13 00:28:30 UTC (rev 23157)
@@ -35,7 +35,8 @@
 
 #include "k5-int.h"
 
-static void usage(const char *progname)
+static void
+usage(const char *progname)
 {
     fprintf(stderr, "%s: Usage:\n", progname);
     fprintf(stderr, "  %s dump <filename>\n", progname);
@@ -45,7 +46,8 @@
     exit(1);
 }
 
-static char *read_counted_string(FILE *fp)
+static char *
+read_counted_string(FILE *fp)
 {
     unsigned int len;
     char *str;
@@ -63,7 +65,8 @@
     return str;
 }
 
-static void dump_rcache(const char *filename)
+static void
+dump_rcache(const char *filename)
 {
     FILE *fp;
     krb5_deltat lifespan;
@@ -105,9 +108,10 @@
     }
 }
 
-static void store(krb5_context ctx, char *rcspec, char *client, char *server,
-                  char *msg, krb5_timestamp timestamp, krb5_int32 usec,
-                  krb5_timestamp now_timestamp, krb5_int32 now_usec)
+static void
+store(krb5_context ctx, char *rcspec, char *client, char *server, char *msg,
+      krb5_timestamp timestamp, krb5_int32 usec, krb5_timestamp now_timestamp,
+      krb5_int32 now_usec)
 {
     krb5_rcache rc = NULL;
     krb5_error_code retval = 0;
@@ -146,8 +150,9 @@
         free(hash);
 }
 
-static void expunge(krb5_context ctx, char *rcspec,
-                    krb5_timestamp now_timestamp, krb5_int32 now_usec)
+static void
+expunge(krb5_context ctx, char *rcspec, krb5_timestamp now_timestamp,
+        krb5_int32 now_usec)
 {
     krb5_rcache rc = NULL;
     krb5_error_code retval = 0;
@@ -168,7 +173,8 @@
         krb5_rc_close(ctx, rc);
 }
 
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
 {
     krb5_context ctx;
     krb5_error_code retval;




More information about the cvs-krb5 mailing list