From owner-svn-src-head@freebsd.org Thu Sep 10 22:25:41 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE107A01461; Thu, 10 Sep 2015 22:25:41 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF3541532; Thu, 10 Sep 2015 22:25:41 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8AMPffo029038; Thu, 10 Sep 2015 22:25:41 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8AMPfiK029036; Thu, 10 Sep 2015 22:25:41 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201509102225.t8AMPfiK029036@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Thu, 10 Sep 2015 22:25:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287634 - head/usr.bin/login X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2015 22:25:41 -0000 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 #include #include -#include #include #include #include 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 #include #include -#include #include #include #include @@ -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;