summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ac
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-03-03 02:44:52 +0000
committergad <gad@FreeBSD.org>2004-03-03 02:44:52 +0000
commit200bbfda863e0bf785bdfb989dc55d64bc46bcc2 (patch)
treed78374b6dadc0941aada60f7e7557d829ee09bfd /usr.sbin/ac
parent6d0363942117331d845782b5cfae8389439c5ad6 (diff)
downloadFreeBSD-src-200bbfda863e0bf785bdfb989dc55d64bc46bcc2.zip
FreeBSD-src-200bbfda863e0bf785bdfb989dc55d64bc46bcc2.tar.gz
Minor style(9) fixes. remove a register keyword, correct two indents.
Noticed while comparing to OpenBSD version.
Diffstat (limited to 'usr.sbin/ac')
-rw-r--r--usr.sbin/ac/ac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index 7827f8d..89e8884 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -115,7 +115,7 @@ struct tty_list *
add_tty(char *name)
{
struct tty_list *tp;
- register char *rcp;
+ char *rcp;
Flags |= AC_T;
@@ -324,7 +324,7 @@ show_today(struct user_list *users, struct utmp_list *logins, time_t secs)
secs += up->secs;
up->secs = 0; /* for next day */
}
- if (secs)
+ if (secs)
(void)printf("%s %11.2f\n", date, ((double)secs / 3600));
}
@@ -428,7 +428,7 @@ log_in(struct utmp_list *head, struct utmp *up)
if (Debug) {
printf("%-.*s %-.*s: %-.*s logged in", 19,
ctime(&lp->usr.ut_time), sizeof (up->ut_line),
- up->ut_line, sizeof (up->ut_name), up->ut_name);
+ up->ut_line, sizeof (up->ut_name), up->ut_name);
if (*up->ut_host)
printf(" (%-.*s)", sizeof (up->ut_host), up->ut_host);
putchar('\n');
OpenPOWER on IntegriCloud