Reformat to avoid parens at beginnings of lines
authorTom Yu <tlyu@mit.edu>
Sat, 31 Oct 2009 18:08:09 +0000 (18:08 +0000)
committerTom Yu <tlyu@mit.edu>
Sat, 31 Oct 2009 18:08:09 +0000 (18:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23109 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/rcache/rc-int.h
src/lib/krb5/rcache/rc_dfl.h
src/lib/krb5/rcache/rc_io.h
src/lib/krb5/rcache/ser_rc.c

index 3030f0e5ebc9b2fad7742a56399f1da72a3a6b08..5ed39e6fd19ea663efb21cb693aebaf6f9a431dc 100644 (file)
@@ -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;
index d1dd153f93be4ef2556db87b52e5c6c610c77b7f..3bc8bd861492adda27d431502afe1783475afaf1 100644 (file)
 #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
index e58d850e37153d95949a7fb25b63a51f3d6e6d87..e774ef9fdbba297ebae231b7ab4e32814fc60aaf 100644 (file)
@@ -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
index 04b969842b5cffd2fe1f38a5c758f65f3627d1f3..04f6066c5325094f5ac1ec20512fa97da2002225 100644 (file)
  *      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.