From 7bd58017041e3ab7011a1f56e5f43184cdc7126a Mon Sep 17 00:00:00 2001 From: charnier Date: Thu, 17 Oct 2002 13:19:47 +0000 Subject: Remove unused #includes. Eliminate castings by using size_t instead of int. --- usr.sbin/ac/ac.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'usr.sbin/ac/ac.c') 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 +__FBSDID("$FreeBSD$"); #include -#include #include #include #include #include #include -#include #include #include #include @@ -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 */ } -- cgit v1.1