rxkad-stats-cleanup-20050530
[openafs.git] / src / des / key_sched.c
index f9abaa1..4076b8b 100644 (file)
@@ -44,6 +44,10 @@ RCSID
 
 typedef char key[64];
 
+#ifndef AFS_PTHREAD_ENV 
+struct rxkad_stats rxkad_stats = { { 0 } }; 
+#endif
+
 /* the following are really void but cc86 doesnt allow it */
 static int make_key_sched();
 
@@ -66,10 +70,9 @@ des_key_sched(register des_cblock k, des_key_schedule schedule)
     n = 0;
     p_char = k_char;
 
-    LOCK_RXKAD_STATS rxkad_stats.des_key_scheds++;
-    UNLOCK_RXKAD_STATS
+    INC_RXKAD_STATS(des_key_scheds);
 #ifdef lint
-       n = n;                  /* fool it in case of VAXASM */
+    n = n;                     /* fool it in case of VAXASM */
 #endif
 #ifdef DEBUG
     if (des_debug)