diff options
author | ed <ed@FreeBSD.org> | 2010-01-13 17:50:58 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-13 17:50:58 +0000 |
commit | 1fded7e6240e43281379cb8abd4569ce41e5dabe (patch) | |
tree | 2e61d6f2e0071a081823bc0ca29691f503567f51 /usr.bin/finger/sprint.c | |
parent | 521728584fe312e1b5563353930a4959421f4e4e (diff) | |
download | FreeBSD-src-1fded7e6240e43281379cb8abd4569ce41e5dabe.zip FreeBSD-src-1fded7e6240e43281379cb8abd4569ce41e5dabe.tar.gz |
Migrate finger(1) towards utmpx.
It was already ported to use libulog, which makes it simpler now. Be
sure to catch the error returned by setutxdb(). Otherwise it may perform
a lookup on the utx.active database.
Diffstat (limited to 'usr.bin/finger/sprint.c')
-rw-r--r-- | usr.bin/finger/sprint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index c08ca3a..d4091a8 100644 --- a/usr.bin/finger/sprint.c +++ b/usr.bin/finger/sprint.c @@ -53,8 +53,7 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <string.h> #include <time.h> -#define _ULOG_POSIX_NAMES -#include <ulog.h> +#include <utmpx.h> #include "finger.h" static void stimeprint(WHERE *); |