rxkad-stats-do-it-right-20050618
[openafs.git] / src / des / util.c
index 866a1eb..520ca1a 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
-RCSID("$Header$");
+RCSID
+    ("$Header$");
 
-#include <mit-cpyright.h>
+#include "mit-cpyright.h"
+#ifndef KERNEL
 #include <stdio.h>
+#endif
 #include <sys/types.h>
 #include <des.h>
+#include "des_prototypes.h"
 
-int des_cblock_print_file(x, fp)
-    des_cblock *x;
-    FILE *fp;
+int
+des_cblock_print_file(des_cblock * x, FILE * fp)
 {
-    unsigned char *y = (unsigned char *) x;
+    unsigned char *y = (unsigned char *)x;
     register int i = 0;
-    fprintf(fp," 0x { ");
+    fprintf(fp, " 0x { ");
 
     while (i++ < 8) {
-       fprintf(fp,"%x",*y++);
+       fprintf(fp, "%x", *y++);
        if (i < 8)
-           fprintf(fp,", ");
+           fprintf(fp, ", ");
     }
-    fprintf(fp," }");
+    fprintf(fp, " }");
 
-       return(0);
+    return (0);
 }
 
 #ifdef DEBUG
-int des_debug_print(area, x, arg1, arg2)
-    char *area;
-    int x;
-    char *arg1;
-    char *arg2;
+int
+des_debug_print(char *area, int x, char *arg1, char *arg2)
 {
     ;
 }