SCCS-vsn: usr.sbin/ac/ac.c 4.9
-static char *sccsid = "@(#)ac.c 4.8 (Berkeley) %G%";
+static char *sccsid = "@(#)ac.c 4.9 (Berkeley) %G%";
#endif
/*
* ac [ -w wtmp ] [ -d ] [ -p ] [ people ]
*/
#endif
/*
* ac [ -w wtmp ] [ -d ] [ -p ] [ people ]
*/
-#include <stdio.h>
-#include <ctype.h>
-#include <utmp.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/timeb.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <utmp.h>
-#define NMAX sizeof(ibuf.ut_name)
-#define LMAX sizeof(ibuf.ut_line)
+#define NMAX UT_NAMESIZE
+#define LMAX UT_LINESIZE
- wtmp = "/usr/adm/wtmp";
while (--argc > 0 && **++argv == '-')
switch(*++*argv) {
case 'd':
while (--argc > 0 && **++argv == '-')
switch(*++*argv) {
case 'd':