summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ac/ac.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ac/ac.c')
-rw-r--r--usr.sbin/ac/ac.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index 9af73f5..ef5ae40 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -13,19 +13,15 @@
* other than his own.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
-#include <sys/file.h>
#include <sys/time.h>
#include <err.h>
#include <errno.h>
#include <langinfo.h>
#include <locale.h>
-#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -56,7 +52,7 @@ struct user_list {
struct tty_list {
struct tty_list *next;
char name[UT_LINESIZE+3];
- int len;
+ size_t len;
int ret;
};
@@ -267,7 +263,7 @@ main(argc, argv)
* initialize user list
*/
for (; optind < argc; optind++) {
- Users = update_user(Users, argv[optind], 0L);
+ Users = update_user(Users, argv[optind], (time_t)0);
}
Flags |= AC_U; /* freeze user list */
}
OpenPOWER on IntegriCloud