aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-10-10 16:21:49 +0000
committerWarner Losh <imp@FreeBSD.org>2021-10-10 17:17:14 +0000
commit880aec7361eab106b62dea28f3dedd457b3abb47 (patch)
tree7121e34fb46f7fd4a2d5a69e940d9c060b82332b /tools/build/cross-build/include
parent9082bc4c3d0b0c27bec13bcff9e76b072303e59b (diff)
downloadsrc-880aec7361eab106b62dea28f3dedd457b3abb47.tar.gz
src-880aec7361eab106b62dea28f3dedd457b3abb47.zip
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
Diffstat (limited to 'tools/build/cross-build/include')
-rw-r--r--tools/build/cross-build/include/common/grp.h2
-rw-r--r--tools/build/cross-build/include/common/pwd.h2
2 files changed, 0 insertions, 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
@@ -46,8 +46,6 @@ int pwcache_userdb(int (*a_setpassent)(int), void (*a_endpwent)(void),
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);
#ifdef __linux__