diff options
Diffstat (limited to 'usr.bin/who/who.c')
-rw-r--r-- | usr.bin/who/who.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |