]> code.citadel.org Git - citadel.git/blobdiff - citadel/stats.c
* added RCS Id keyword strings to sources
[citadel.git] / citadel / stats.c
index be8721880b7dad46047695f466d6ac66395f3bc7..c88a166a29aa0224198063a917424e69c7a7a108 100644 (file)
@@ -1,4 +1,5 @@
 /* Citadel/UX call log stats program
+ * $Id$
  */
 #include <stdlib.h>
 #include <unistd.h>
@@ -41,7 +42,7 @@ prompt (void)
 }
 
 int
-halfhour (long int time)                       /* Returns half-hour time period of time */
+halfhour (time_t time)                 /* Returns half-hour time period of time */
                
 {
   int a;
@@ -106,7 +107,7 @@ main (int argc, char **argv)
   long cftime, cttime, aa;
   int calls, logins, newusers;
   int badpws, terms, drops, sleeps;
-  long from, to, tottime;
+  time_t from, to, tottime;
   int days, hours, minutes;
   char aaa[100];
   struct tm *tm;
@@ -139,8 +140,8 @@ main (int argc, char **argv)
   if (!batch_mode)
     printf ("Scanning call log, please wait...\n\n\n\n");
 
-  from = 0L;
-  to = 0L;
+  from = 0;
+  to = 0;
   for (a = 0; a < 72; ++a)
     {
       timeon[a] = 0L;