Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2010 17:59:23 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202195 - head/sbin/reboot
Message-ID:  <201001131759.o0DHxNlg080182@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Wed Jan 13 17:59:23 2010
New Revision: 202195
URL: http://svn.freebsd.org/changeset/base/202195

Log:
  Port the remaining apps in sbin/ to utmpx; only reboot(8).

Modified:
  head/sbin/reboot/Makefile
  head/sbin/reboot/reboot.c

Modified: head/sbin/reboot/Makefile
==============================================================================
--- head/sbin/reboot/Makefile	Wed Jan 13 17:58:49 2010	(r202194)
+++ head/sbin/reboot/Makefile	Wed Jan 13 17:59:23 2010	(r202195)
@@ -2,8 +2,6 @@
 # $FreeBSD$
 
 PROG=	reboot
-DPADD=	${LIBULOG}
-LDADD=	-lulog
 MAN=	reboot.8 nextboot.8
 MLINKS=	reboot.8 halt.8 reboot.8 fastboot.8 reboot.8 fasthalt.8
 

Modified: head/sbin/reboot/reboot.c
==============================================================================
--- head/sbin/reboot/reboot.c	Wed Jan 13 17:58:49 2010	(r202194)
+++ head/sbin/reboot/reboot.c	Wed Jan 13 17:59:23 2010	(r202195)
@@ -54,9 +54,8 @@ __FBSDID("$FreeBSD$");
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#define _ULOG_POSIX_NAMES
-#include <ulog.h>
 #include <unistd.h>
+#include <utmpx.h>
 
 static void usage(void);
 static u_int get_pageins(void);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001131759.o0DHxNlg080182>