install correct aliases file
[unix-history] / usr / src / usr.sbin / ac / ac.c
index dd4daad..f65857e 100644 (file)
@@ -1,12 +1,14 @@
+#ifndef lint
+static char *sccsid = "@(#)ac.c        4.7 (Berkeley) %G%";
+#endif
 /*
 /*
- * acct [ -w wtmp ] [ -d ] [ -p ] [ people ]
+ * ac [ -w wtmp ] [ -d ] [ -p ] [ people ]
  */
  */
-static char *sccsid = "@(#)ac.c        4.4 (Berkeley) %G%";
 
 #include <stdio.h>
 #include <ctype.h>
 
 #include <stdio.h>
 #include <ctype.h>
-#include <time.h>
 #include <utmp.h>
 #include <utmp.h>
+#include <sys/time.h>
 #include <sys/types.h>
 #include <sys/timeb.h>
 
 #include <sys/types.h>
 #include <sys/timeb.h>
 
@@ -106,7 +108,7 @@ loop()
                dtime = ibuf.ut_time;
                return;
        }
                dtime = ibuf.ut_time;
                return;
        }
-       if(ibuf.ut_line[0] == '}') {
+       if(ibuf.ut_line[0] == '{') {
                if(dtime == 0)
                        return;
                for(tp = tbuf; tp < &tbuf[TSIZE]; tp++)
                if(dtime == 0)
                        return;
                for(tp = tbuf; tp < &tbuf[TSIZE]; tp++)