aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/who
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-13 18:09:54 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-13 18:09:54 +0000
commitab90a4d1e240b52309d6efd0e0856a7b6b3c6bab (patch)
tree66d7905a7dddba5593f48b0defbadd5033878357 /usr.bin/who
parent1131779fb3dd85440f7bbcace8727edb37d9b664 (diff)
Perform all trivial ports to utmpx for usr.bin/.
They were already converted to use libulog, so it's easy to convert them to utmpx.
Notes
Notes: svn path=/head/; revision=202200
Diffstat (limited to 'usr.bin/who')
-rw-r--r--usr.bin/who/Makefile3
-rw-r--r--usr.bin/who/who.c5
2 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/who/Makefile b/usr.bin/who/Makefile
index bec6fcac1f25..0478d73071a3 100644
--- a/usr.bin/who/Makefile
+++ b/usr.bin/who/Makefile
@@ -3,7 +3,4 @@
PROG= who
-DPADD= ${LIBULOG}
-LDADD= -lulog
-
.include <bsd.prog.mk>
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index bd8b68c6c202..d6f38dd62919 100644
--- a/usr.bin/who/who.c
+++ b/usr.bin/who/who.c
@@ -44,9 +44,8 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <time.h>
#include <timeconv.h>
-#define _ULOG_POSIX_NAMES
-#include <ulog.h>
#include <unistd.h>
+#include <utmpx.h>
static void heading(void);
static void process_utmp(void);
@@ -109,7 +108,7 @@ main(int argc, char *argv[])
usage();
if (*argv != NULL) {
- if (ulog_setutxfile(UTXI_TTY, *argv) != 0)
+ if (setutxdb(UTXDB_ACTIVE, *argv) != 0)
err(1, "%s", *argv);
}