summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ac/ac.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2002-10-17 13:19:47 +0000
committercharnier <charnier@FreeBSD.org>2002-10-17 13:19:47 +0000
commit7bd58017041e3ab7011a1f56e5f43184cdc7126a (patch)
tree7af0bdedc91cfd667cf0f996695a13f768311969 /usr.sbin/ac/ac.c
parentdcefc83b9c16c162e36e8cac419ba9002aae3dab (diff)
downloadFreeBSD-src-7bd58017041e3ab7011a1f56e5f43184cdc7126a.zip
FreeBSD-src-7bd58017041e3ab7011a1f56e5f43184cdc7126a.tar.gz
Remove unused #includes. Eliminate castings by using size_t instead of int.
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