summaryrefslogtreecommitdiff
path: root/usr/src/cmd/acct
diff options
context:
space:
mode:
authorSachidananda Urs <sacchi@gmail.com>2014-11-19 23:45:01 +0530
committerDan McDonald <danmcd@omniti.com>2014-12-01 11:42:16 -0500
commit1eabc4bec6d2a5ad71f6a1f0c019af5438d8b1bf (patch)
treec0be4b37972d12479ba633ea6572cd6d53da1719 /usr/src/cmd/acct
parent90b1de135fcfa7ce4adc9138a885aa94bbcef04f (diff)
downloadillumos-joyent-1eabc4bec6d2a5ad71f6a1f0c019af5438d8b1bf.tar.gz
3124 Remove any existing references to utmp, use utmpx instead
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd/acct')
-rw-r--r--usr/src/cmd/acct/utmp2wtmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/acct/utmp2wtmp.c b/usr/src/cmd/acct/utmp2wtmp.c
index 813d0e9d27..f980f2530f 100644
--- a/usr/src/cmd/acct/utmp2wtmp.c
+++ b/usr/src/cmd/acct/utmp2wtmp.c
@@ -26,11 +26,11 @@
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* create entries for users who are still logged on when accounting
* is being run. Look at utmpx, and update the time stamp. New info
- * goes to wtmpx. Called by runacct.
+ * goes to wtmpx. Called by runacct.
*/
#include <stdio.h>
@@ -55,9 +55,9 @@ main(int argc, char **argv)
}
while ((utmpx = getutxent()) != NULL) {
- if ((utmpx->ut_type == USER_PROCESS) && !(nonuser(*utmpx))) {
+ if ((utmpx->ut_type == USER_PROCESS) && !(nonuserx(*utmpx))) {
time(&utmpx->ut_xtime);
- fwrite(utmpx, sizeof(*utmpx), 1, fp);
+ fwrite(utmpx, sizeof (*utmpx), 1, fp);
}
}
fclose(fp);