From 43f275008f1d68c6adee461c531d73c65b6b7483 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 Mar 2012 15:25:05 +0100 Subject: lib/util: Remove dummy wrapper for getpwuid(). --- lib/util/util_pw.c | 9 ++------- lib/util/util_pw.h | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/util/util_pw.c b/lib/util/util_pw.c index 981e017ab2..5ee4456759 100644 --- a/lib/util/util_pw.c +++ b/lib/util/util_pw.c @@ -29,14 +29,9 @@ #include "lib/util/util_pw.h" /************************************************************************** - Wrappers for getpwuid(), getgrnam(), getgrgid() + Wrappers for getgrnam(), getgrgid() ****************************************************************************/ -struct passwd *sys_getpwuid(uid_t uid) -{ - return getpwuid(uid); -} - struct group *sys_getgrnam(const char *name) { return getgrnam(name); @@ -92,7 +87,7 @@ struct passwd *getpwuid_alloc(TALLOC_CTX *mem_ctx, uid_t uid) { struct passwd *temp; - temp = sys_getpwuid(uid); + temp = getpwuid(uid); if (!temp) { #if 0 diff --git a/lib/util/util_pw.h b/lib/util/util_pw.h index ffbb4c0691..b46197b9ce 100644 --- a/lib/util/util_pw.h +++ b/lib/util/util_pw.h @@ -24,7 +24,6 @@ #ifndef __LIB_UTIL_UTIL_PW_H__ #define __LIB_UTIL_UTIL_PW_H__ -struct passwd *sys_getpwuid(uid_t uid); struct group *sys_getgrnam(const char *name); struct group *sys_getgrgid(gid_t gid); struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx, -- cgit