diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-11-13 00:28:30 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-11-13 00:28:30 +0000 |
commit | 26044e2a3c3104b9c3f32a6ae58145e7e6394672 (patch) | |
tree | 7347ce3499afb395f2de3caf5af60aa9907f7431 | |
parent | 83bc64eef6e3929a2fc650ff78dd573f4f911dbe (diff) | |
download | krb5-26044e2a3c3104b9c3f32a6ae58145e7e6394672.zip krb5-26044e2a3c3104b9c3f32a6ae58145e7e6394672.tar.gz krb5-26044e2a3c3104b9c3f32a6ae58145e7e6394672.tar.bz2 |
In lib/krb5/rcache, ensure that function definition headers put the
function name at the beginning of the line.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23157 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/rcache/rc_base.c | 26 | ||||
-rw-r--r-- | src/lib/krb5/rcache/t_replay.c | 24 |
2 files changed, 31 insertions, 19 deletions
diff --git a/src/lib/krb5/rcache/rc_base.c b/src/lib/krb5/rcache/rc_base.c index a7c7dd8..7a5a09a 100644 --- a/src/lib/krb5/rcache/rc_base.c +++ b/src/lib/krb5/rcache/rc_base.c @@ -24,11 +24,14 @@ static struct krb5_rc_typelist krb5_rc_typelist_dfl = { &krb5_rc_dfl_ops, &none 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 @@ void krb5int_rc_terminate(void) } } -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 @@ krb5_error_code krb5_rc_register_type(krb5_context context, 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 @@ char * krb5_rc_get_type(krb5_context context, krb5_rcache id) 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 @@ char * krb5_rc_default_type(krb5_context context) 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_rc_default(krb5_context context, krb5_rcache *idptr) } -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; diff --git a/src/lib/krb5/rcache/t_replay.c b/src/lib/krb5/rcache/t_replay.c index 50928c5..c38a4a6 100644 --- a/src/lib/krb5/rcache/t_replay.c +++ b/src/lib/krb5/rcache/t_replay.c @@ -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 @@ static void usage(const char *progname) 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 @@ static char *read_counted_string(FILE *fp) 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 dump_rcache(const char *filename) } } -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 @@ cleanup: 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 @@ cleanup: krb5_rc_close(ctx, rc); } -int main(int argc, char **argv) +int +main(int argc, char **argv) { krb5_context ctx; krb5_error_code retval; |