summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-07-16 10:43:11 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-16 10:43:11 +0100
commit34f88a578690e0bae7da33277be21b1ccf7f4812 (patch)
treee746c34e277d8f1dc6abcd85dc2f7d642a76f8b1 /src/lib/evil
parentab26579cab36451c9efd33adfba22ecce4010ef1 (diff)
Evil: remove getpwuid() from Evil.
Summary: getpwuid() is used only in eina_test_vpath() and is called when getpwent() is available, which is not the case on Windows Test Plan: compilation Reviewers: raster, cedric, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9326
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_pwd.c7
-rw-r--r--src/lib/evil/pwd.h15
2 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/evil/evil_pwd.c b/src/lib/evil/evil_pwd.c
index 03e7414..c45f928 100644
--- a/src/lib/evil/evil_pwd.c
+++ b/src/lib/evil/evil_pwd.c
@@ -67,10 +67,3 @@ getpwnam(const char *n)
67 67
68 return &pw; 68 return &pw;
69} 69}
70
71struct passwd *
72getpwuid(uid_t uid)
73{
74 return getpwnam(getlogin());
75 (void)uid;
76}
diff --git a/src/lib/evil/pwd.h b/src/lib/evil/pwd.h
index 2d30338..104acd9 100644
--- a/src/lib/evil/pwd.h
+++ b/src/lib/evil/pwd.h
@@ -72,21 +72,6 @@ struct passwd {
72 */ 72 */
73EAPI struct passwd *getpwnam(const char *n); 73EAPI struct passwd *getpwnam(const char *n);
74 74
75/**
76 * @brief Return a passwd structure.
77 *
78 * @param uid The User ID.
79 * @return A stacally allocated passwd structure.
80 *
81 * This function fills a static buffer @ref passwd with @p uid and the
82 * user name.
83 *
84 * Conformity: None.
85 *
86 * Supported OS: Windows XP.
87 */
88EAPI struct passwd *getpwuid (uid_t uid);
89
90 75
91#ifdef __cplusplus 76#ifdef __cplusplus
92} 77}