Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2021 17:18:28 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 880aec7361ea - main - cross-build: Remove redundant lines.
Message-ID:  <202110101718.19AHISiX031069@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=880aec7361eab106b62dea28f3dedd457b3abb47

commit 880aec7361eab106b62dea28f3dedd457b3abb47
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-10-10 16:21:49 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-10-10 17:17:14 +0000

    cross-build: Remove redundant lines.
    
    There's two identical gid_from_group lines in a row. We only need one.
    Ditto for uid_from_user().
    
    Sponsored by:           Netflix
    Reviewed by:            bapt, jrtc27
    Differential Revision:  https://reviews.freebsd.org/D32442
---
 tools/build/cross-build/include/common/grp.h | 2 --
 tools/build/cross-build/include/common/pwd.h | 2 --
 2 files changed, 4 deletions(-)

diff --git a/tools/build/cross-build/include/common/grp.h b/tools/build/cross-build/include/common/grp.h
index 08a8bc540569..750e1e9a49f6 100644
--- a/tools/build/cross-build/include/common/grp.h
+++ b/tools/build/cross-build/include/common/grp.h
@@ -47,8 +47,6 @@ int pwcache_groupdb(int (*a_setgroupent)(int), void (*a_endgrent)(void),
 
 int gid_from_group(const char *name, gid_t *gid);
 
-int gid_from_group(const char *name, gid_t *gid);
-
 const char *group_from_gid(gid_t gid, int noname);
 
 #ifdef __linux__
diff --git a/tools/build/cross-build/include/common/pwd.h b/tools/build/cross-build/include/common/pwd.h
index e167fe47701f..14abc7fcadf0 100644
--- a/tools/build/cross-build/include/common/pwd.h
+++ b/tools/build/cross-build/include/common/pwd.h
@@ -45,8 +45,6 @@ int pwcache_userdb(int (*a_setpassent)(int), void (*a_endpwent)(void),
     struct passwd *(*a_getpwnam)(const char *),
     struct passwd *(*a_getpwuid)(uid_t));
 
-int uid_from_user(const char *name, uid_t *uid);
-
 int uid_from_user(const char *name, uid_t *uid);
 const char *user_from_uid(uid_t uid, int noname);
 



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