From: Tom Yu Date: Sat, 31 Oct 2009 18:08:09 +0000 (+0000) Subject: Reformat to avoid parens at beginnings of lines X-Git-Tag: krb5-1.8-alpha1~229 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=933f80f3adc9fcc02eb53a5733b3c6c4b36c2da1;p=krb5.git Reformat to avoid parens at beginnings of lines git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23109 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/rcache/rc-int.h b/src/lib/krb5/rcache/rc-int.h index 3030f0e5e..5ed39e6fd 100644 --- a/src/lib/krb5/rcache/rc-int.h +++ b/src/lib/krb5/rcache/rc-int.h @@ -46,31 +46,46 @@ struct krb5_rc_st { struct _krb5_rc_ops { krb5_magic magic; char *type; - krb5_error_code (KRB5_CALLCONV *init) - (krb5_context, krb5_rcache,krb5_deltat); /* create */ - krb5_error_code (KRB5_CALLCONV *recover) - (krb5_context, krb5_rcache); /* open */ - krb5_error_code (KRB5_CALLCONV *recover_or_init) - (krb5_context, krb5_rcache,krb5_deltat); - krb5_error_code (KRB5_CALLCONV *destroy) - (krb5_context, krb5_rcache); - krb5_error_code (KRB5_CALLCONV *close) - (krb5_context, krb5_rcache); - krb5_error_code (KRB5_CALLCONV *store) - (krb5_context, krb5_rcache,krb5_donot_replay *); - krb5_error_code (KRB5_CALLCONV *expunge) - (krb5_context, krb5_rcache); - krb5_error_code (KRB5_CALLCONV *get_span) - (krb5_context, krb5_rcache,krb5_deltat *); - char *(KRB5_CALLCONV *get_name) - (krb5_context, krb5_rcache); - krb5_error_code (KRB5_CALLCONV *resolve) - (krb5_context, krb5_rcache, char *); + krb5_error_code (KRB5_CALLCONV *init)( + krb5_context, + krb5_rcache, + krb5_deltat); /* create */ + krb5_error_code (KRB5_CALLCONV *recover)( + krb5_context, + krb5_rcache); /* open */ + krb5_error_code (KRB5_CALLCONV *recover_or_init)( + krb5_context, + krb5_rcache, + krb5_deltat); + krb5_error_code (KRB5_CALLCONV *destroy)( + krb5_context, + krb5_rcache); + krb5_error_code (KRB5_CALLCONV *close)( + krb5_context, + krb5_rcache); + krb5_error_code (KRB5_CALLCONV *store)( + krb5_context, + krb5_rcache, + krb5_donot_replay *); + krb5_error_code (KRB5_CALLCONV *expunge)( + krb5_context, + krb5_rcache); + krb5_error_code (KRB5_CALLCONV *get_span)( + krb5_context, + krb5_rcache, + krb5_deltat *); + char *(KRB5_CALLCONV *get_name)( + krb5_context, + krb5_rcache); + krb5_error_code (KRB5_CALLCONV *resolve)( + krb5_context, + krb5_rcache, + char *); }; typedef struct _krb5_rc_ops krb5_rc_ops; -krb5_error_code krb5_rc_register_type (krb5_context, const krb5_rc_ops *); +krb5_error_code krb5_rc_register_type(krb5_context, const krb5_rc_ops *); extern const krb5_rc_ops krb5_rc_dfl_ops; extern const krb5_rc_ops krb5_rc_none_ops; diff --git a/src/lib/krb5/rcache/rc_dfl.h b/src/lib/krb5/rcache/rc_dfl.h index d1dd153f9..3bc8bd861 100644 --- a/src/lib/krb5/rcache/rc_dfl.h +++ b/src/lib/krb5/rcache/rc_dfl.h @@ -14,43 +14,36 @@ #ifndef KRB5_RC_DFL_H #define KRB5_RC_DFL_H -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_init -(krb5_context, - krb5_rcache, - krb5_deltat); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_recover -(krb5_context, - krb5_rcache); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_recover_or_init -(krb5_context, krb5_rcache, krb5_deltat); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_destroy -(krb5_context, - krb5_rcache); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_close -(krb5_context, - krb5_rcache); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_store -(krb5_context, - krb5_rcache, - krb5_donot_replay *); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_expunge -(krb5_context, - krb5_rcache); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_get_span -(krb5_context, - krb5_rcache, - krb5_deltat *); -char * KRB5_CALLCONV krb5_rc_dfl_get_name -(krb5_context, - krb5_rcache); -krb5_error_code KRB5_CALLCONV krb5_rc_dfl_resolve -(krb5_context, - krb5_rcache, - char *); -krb5_error_code krb5_rc_dfl_close_no_free -(krb5_context, - krb5_rcache); -void krb5_rc_free_entry -(krb5_context, - krb5_donot_replay **); +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_init(krb5_context, krb5_rcache, krb5_deltat); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_recover(krb5_context, krb5_rcache); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_recover_or_init(krb5_context, krb5_rcache, krb5_deltat); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_destroy(krb5_context, krb5_rcache); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_close(krb5_context, krb5_rcache); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_store(krb5_context, krb5_rcache, krb5_donot_replay *); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_expunge(krb5_context, krb5_rcache); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_get_span(krb5_context, krb5_rcache, krb5_deltat *); + +char * KRB5_CALLCONV +krb5_rc_dfl_get_name(krb5_context, krb5_rcache); + +krb5_error_code KRB5_CALLCONV +krb5_rc_dfl_resolve(krb5_context, krb5_rcache, char *); + +krb5_error_code krb5_rc_dfl_close_no_free(krb5_context, krb5_rcache); +void krb5_rc_free_entry(krb5_context, krb5_donot_replay **); #endif diff --git a/src/lib/krb5/rcache/rc_io.h b/src/lib/krb5/rcache/rc_io.h index e58d850e3..e774ef9fd 100644 --- a/src/lib/krb5/rcache/rc_io.h +++ b/src/lib/krb5/rcache/rc_io.h @@ -14,8 +14,7 @@ #ifndef KRB5_RC_IO_H #define KRB5_RC_IO_H -typedef struct krb5_rc_iostuff -{ +typedef struct krb5_rc_iostuff { int fd; #ifdef MSDOS_FILESYSTEM long mark; @@ -23,49 +22,40 @@ typedef struct krb5_rc_iostuff off_t mark; /* on newer systems, should be pos_t */ #endif char *fn; -} - krb5_rc_iostuff; +} krb5_rc_iostuff; /* first argument is always iostuff for result file */ -krb5_error_code krb5_rc_io_creat -(krb5_context, - krb5_rc_iostuff *, - char **); -krb5_error_code krb5_rc_io_open -(krb5_context, - krb5_rc_iostuff *, - char *); -krb5_error_code krb5_rc_io_move -(krb5_context, - krb5_rc_iostuff *, - krb5_rc_iostuff *); -krb5_error_code krb5_rc_io_write -(krb5_context, - krb5_rc_iostuff *, - krb5_pointer, - unsigned int); -krb5_error_code krb5_rc_io_read -(krb5_context, - krb5_rc_iostuff *, - krb5_pointer, - unsigned int); -krb5_error_code krb5_rc_io_close -(krb5_context, - krb5_rc_iostuff *); -krb5_error_code krb5_rc_io_destroy -(krb5_context, - krb5_rc_iostuff *); -krb5_error_code krb5_rc_io_mark -(krb5_context, - krb5_rc_iostuff *); -krb5_error_code krb5_rc_io_unmark -(krb5_context, - krb5_rc_iostuff *); -krb5_error_code krb5_rc_io_sync -(krb5_context, - krb5_rc_iostuff *); -long krb5_rc_io_size -(krb5_context, - krb5_rc_iostuff *); +krb5_error_code +krb5_rc_io_creat(krb5_context, krb5_rc_iostuff *, char **); + +krb5_error_code +krb5_rc_io_open(krb5_context, krb5_rc_iostuff *, char *); + +krb5_error_code +krb5_rc_io_move(krb5_context, krb5_rc_iostuff *, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_write(krb5_context, krb5_rc_iostuff *, krb5_pointer, unsigned int); + +krb5_error_code +krb5_rc_io_read(krb5_context, krb5_rc_iostuff *, krb5_pointer, unsigned int); + +krb5_error_code +krb5_rc_io_close(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_destroy(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_mark(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_unmark(krb5_context, krb5_rc_iostuff *); + +krb5_error_code +krb5_rc_io_sync(krb5_context, krb5_rc_iostuff *); + +long +krb5_rc_io_size(krb5_context, krb5_rc_iostuff *); #endif diff --git a/src/lib/krb5/rcache/ser_rc.c b/src/lib/krb5/rcache/ser_rc.c index 04b969842..04f6066c5 100644 --- a/src/lib/krb5/rcache/ser_rc.c +++ b/src/lib/krb5/rcache/ser_rc.c @@ -38,12 +38,14 @@ * krb5_rcache_externalize(); * krb5_rcache_internalize(); */ -static krb5_error_code krb5_rcache_size -(krb5_context, krb5_pointer, size_t *); -static krb5_error_code krb5_rcache_externalize -(krb5_context, krb5_pointer, krb5_octet **, size_t *); -static krb5_error_code krb5_rcache_internalize -(krb5_context,krb5_pointer *, krb5_octet **, size_t *); +static krb5_error_code +krb5_rcache_size(krb5_context, krb5_pointer, size_t *); + +static krb5_error_code +krb5_rcache_externalize(krb5_context, krb5_pointer, krb5_octet **, size_t *); + +static krb5_error_code +krb5_rcache_internalize(krb5_context,krb5_pointer *, krb5_octet **, size_t *); /* * Serialization entry for this type.