summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/net.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-28 20:54:34 +0000
committered <ed@FreeBSD.org>2009-12-28 20:54:34 +0000
commit5bf232465b8e0def3c04c6e47745b969162463fe (patch)
tree572b8cc48e0e4fce2e62ea0eb3f0cf8dc6028a53 /usr.bin/finger/net.c
parentf60568ce2e9a52bcb63e2ad46f8bc34bf16b6273 (diff)
downloadFreeBSD-src-5bf232465b8e0def3c04c6e47745b969162463fe.zip
FreeBSD-src-5bf232465b8e0def3c04c6e47745b969162463fe.tar.gz
Migrate finger(1) away from <utmp.h>.
Unfortunately it also uses lastlog, which means we must resort to local extensions of the utmpx-interface. Because the user name and TTY name are now nul-terminated, there is no need to copy around strings as often.
Diffstat (limited to 'usr.bin/finger/net.c')
-rw-r--r--usr.bin/finger/net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c
index 5260a2d..dfc533a 100644
--- a/usr.bin/finger/net.c
+++ b/usr.bin/finger/net.c
@@ -54,8 +54,9 @@ __FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#define _ULOG_POSIX_NAMES
+#include <ulog.h>
#include <unistd.h>
-#include <utmp.h>
#include "finger.h"
static void cleanup(int sig);
OpenPOWER on IntegriCloud