diff options
author | ed <ed@FreeBSD.org> | 2010-01-13 18:09:54 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-13 18:09:54 +0000 |
commit | a618bd1a158a3f8174b7ede338f30c70df7cf77b (patch) | |
tree | 66d7905a7dddba5593f48b0defbadd5033878357 /usr.bin/who | |
parent | 7aa5833636168ba9989927eb04dc999194aa0d6d (diff) | |
download | FreeBSD-src-a618bd1a158a3f8174b7ede338f30c70df7cf77b.zip FreeBSD-src-a618bd1a158a3f8174b7ede338f30c70df7cf77b.tar.gz |
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.
Diffstat (limited to 'usr.bin/who')
-rw-r--r-- | usr.bin/who/Makefile | 3 | ||||
-rw-r--r-- | usr.bin/who/who.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/who/Makefile b/usr.bin/who/Makefile index bec6fca..0478d73 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 bd8b68c..d6f38dd 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); } |