summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-09-24 00:54:46 +0000
committerdelphij <delphij@FreeBSD.org>2015-09-24 00:54:46 +0000
commit1a5b0b1eeedc400a03696f4480a4fc3cbab77e63 (patch)
treed56340933bb6777b67a127eeb35325e02ece4f82
parentd812607618045f7758140f41939c1413679196e9 (diff)
downloadFreeBSD-src-1a5b0b1eeedc400a03696f4480a4fc3cbab77e63.zip
FreeBSD-src-1a5b0b1eeedc400a03696f4480a4fc3cbab77e63.tar.gz
MFC r287634:
login.c doesn't really need libutil.h, don't include it. login_fbtab.c includes paths.h and pathnames.h, and pathnames.h includes paths.h. Eliminate the paths.h inclusion in login_fbtab.c.
-rw-r--r--usr.bin/login/login.c1
-rw-r--r--usr.bin/login/login_fbtab.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index e2af83f..f637bc2 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -63,7 +63,6 @@ __FBSDID("$FreeBSD$");
#include <err.h>
#include <errno.h>
#include <grp.h>
-#include <libutil.h>
#include <login_cap.h>
#include <pwd.h>
#include <setjmp.h>
diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c
index f642ea7..8faee56 100644
--- a/usr.bin/login/login_fbtab.c
+++ b/usr.bin/login/login_fbtab.c
@@ -65,7 +65,6 @@ __FBSDID("$FreeBSD$");
#include <sys/stat.h>
#include <errno.h>
#include <glob.h>
-#include <paths.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
@@ -120,7 +119,7 @@ login_fbtab(char *tty, uid_t uid, gid_t gid)
/* login_protect - protect one device entry */
-void
+static void
login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid)
{
glob_t gl;
OpenPOWER on IntegriCloud