]> code.citadel.org Git - citadel.git/commitdiff
Fixed a bug
authorArt Cancro <ajc@citadel.org>
Sun, 12 Jul 1998 21:39:49 +0000 (21:39 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 12 Jul 1998 21:39:49 +0000 (21:39 +0000)
citadel/readlog.c

index e4fd7dd88f3cfe10d5729f0032c3f2b846f45ff1..96e78d7c8f1a65a3970d737c35624d4b4c29408a 100644 (file)
@@ -8,6 +8,8 @@
 #include <fcntl.h>
 #include <stdio.h>
 #include <time.h>
+#include <string.h>
+#include <errno.h>
 #include "citadel.h"
 
 void get_config ();
@@ -23,7 +25,6 @@ main (argc, argv)
   char LogName[256];
 
   char buf[256];
-  int a, b;
   char aaa[100];
   struct tm *tm;
   char *tstring;
@@ -37,15 +38,6 @@ main (argc, argv)
       perror ("Could not open citadel.log");
       exit (errno);
     }
-  if (argc >= 2)
-    {
-      if (!strcmp (argv[1], "-t"))
-       last20 (file, (long) pos);
-      else
-       fprintf (stderr, "%s: usage: %s [-t]\n", argv[0], argv[0]);
-      close (file);
-      exit (0);
-    }
   else
     {
       while (fgets (buf, 256, logfp) != NULL)