diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-06-02 21:44:28 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-06-02 21:45:53 +0100 |
commit | be2617036ff7f53343e24101654015b875258777 (patch) | |
tree | 33aed71395a3f450be97f88406310d9a244609c5 | |
parent | c1ac007576a251c88f0fd34c3cfc41d63412ef93 (diff) |
Remove extra definition of getpeereid. From Eric N Vander Weele in GitHub issue
3209.
-rw-r--r-- | compat/getpeereid.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compat/getpeereid.c b/compat/getpeereid.c index c4988438..c194e886 100644 --- a/compat/getpeereid.c +++ b/compat/getpeereid.c @@ -38,9 +38,6 @@ getpeereid(int s, uid_t *uid, gid_t *gid) *gid = uc.gid; return (0); #elif defined(HAVE_GETPEERUCRED) -int -getpeereid(int s, uid_t *uid, gid_t *gid) -{ ucred_t *ucred = NULL; if (getpeerucred(s, &ucred) == -1) @@ -51,7 +48,6 @@ getpeereid(int s, uid_t *uid, gid_t *gid) return (-1); ucred_free(ucred); return (0); -} #else return (getuid()); #endif |