reindent-20030715
[openafs.git] / src / afs / afs_stat.c
index 7398ea8..9b0996c 100644 (file)
 #include <afsconfig.h>
 #include "afs/param.h"
 
-RCSID("$Header$");
+RCSID
+    ("$Header$");
 
-#include "afs/sysincludes.h" /*Standard vendor system headers*/
-#include "afsincludes.h" /*AFS-based standard headers*/
+#include "afs/sysincludes.h"   /*Standard vendor system headers */
+#include "afsincludes.h"       /*AFS-based standard headers */
 #include "afs_stats.h"
 
 struct afs_CMStats afs_cmstats;
@@ -37,18 +38,20 @@ afs_int32 afs_stats_XferSumBytes[AFS_STATS_NUM_FS_XFER_OPS];
  * Environment:
  *     This routine should only be called once, at initialization time.
  */
-void afs_InitStats(void)
+void
+afs_InitStats(void)
 {
-    struct afs_stats_opTimingData *opTimeP;    /*Ptr to curr timing struct*/
-    struct afs_stats_xferData *xferP;          /*Ptr to curr xfer struct*/
-    int currIdx;                               /*Current index*/
+    struct afs_stats_opTimingData *opTimeP;    /*Ptr to curr timing struct */
+    struct afs_stats_xferData *xferP;  /*Ptr to curr xfer struct */
+    int currIdx;               /*Current index */
 
     /*
      * First step is to zero everything out.
      */
     memset((char *)(&afs_cmstats), 0, sizeof(struct afs_CMStats));
     memset((char *)(&afs_stats_cmperf), 0, sizeof(struct afs_stats_CMPerf));
-    memset((char *)(&afs_stats_cmfullperf), 0, sizeof(struct afs_stats_CMFullPerf));
+    memset((char *)(&afs_stats_cmfullperf), 0,
+          sizeof(struct afs_stats_CMFullPerf));
 
     /*
      * Some fields really should be non-zero at the start, so set 'em up.
@@ -56,11 +59,13 @@ void afs_InitStats(void)
     afs_stats_cmperf.srvNumBuckets = NSERVERS;
 
     opTimeP = &(afs_stats_cmfullperf.rpc.fsRPCTimes[0]);
-    for (currIdx = 0; currIdx < AFS_STATS_NUM_FS_RPC_OPS; currIdx++, opTimeP++)
+    for (currIdx = 0; currIdx < AFS_STATS_NUM_FS_RPC_OPS;
+        currIdx++, opTimeP++)
        opTimeP->minTime.tv_sec = 999999;
 
     opTimeP = &(afs_stats_cmfullperf.rpc.cmRPCTimes[0]);
-    for (currIdx = 0; currIdx < AFS_STATS_NUM_CM_RPC_OPS; currIdx++, opTimeP++)
+    for (currIdx = 0; currIdx < AFS_STATS_NUM_CM_RPC_OPS;
+        currIdx++, opTimeP++)
        opTimeP->minTime.tv_sec = 999999;
 
     xferP = &(afs_stats_cmfullperf.rpc.fsXferTimes[0]);
@@ -70,7 +75,8 @@ void afs_InitStats(void)
     }
 }
 
-void afs_GetCMStat(char **ptr, unsigned *size)
+void
+afs_GetCMStat(char **ptr, unsigned *size)
 {
 #ifndef AFS_NOSTATS
     AFS_STATCNT(afs_GetCMStat);
@@ -79,7 +85,8 @@ void afs_GetCMStat(char **ptr, unsigned *size)
 #endif /* AFS_NOSTATS */
 }
 
-void afs_AddToMean(struct afs_MeanStats *oldMean, afs_int32 newValue)
+void
+afs_AddToMean(struct afs_MeanStats *oldMean, afs_int32 newValue)
 {
     AFS_STATCNT(afs_AddToMean);
 }