Date: Thu, 10 Sep 2015 22:25:41 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287634 - head/usr.bin/login Message-ID: <201509102225.t8AMPfiK029036@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Thu Sep 10 22:25:40 2015 New Revision: 287634 URL: https://svnweb.freebsd.org/changeset/base/287634 Log: 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. MFC after: 2 weeks Modified: head/usr.bin/login/login.c head/usr.bin/login/login_fbtab.c Modified: head/usr.bin/login/login.c ============================================================================== --- head/usr.bin/login/login.c Thu Sep 10 22:07:52 2015 (r287633) +++ head/usr.bin/login/login.c Thu Sep 10 22:25:40 2015 (r287634) @@ -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> Modified: head/usr.bin/login/login_fbtab.c ============================================================================== --- head/usr.bin/login/login_fbtab.c Thu Sep 10 22:07:52 2015 (r287633) +++ head/usr.bin/login/login_fbtab.c Thu Sep 10 22:25:40 2015 (r287634) @@ -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 /* 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509102225.t8AMPfiK029036>