raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=34f88a578690e0bae7da33277be21b1ccf7f4812

commit 34f88a578690e0bae7da33277be21b1ccf7f4812
Author: Vincent Torri <vincent.to...@gmail.com>
Date:   Tue Jul 16 10:43:11 2019 +0100

    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
---
 src/lib/evil/evil_pwd.c |  7 -------
 src/lib/evil/pwd.h      | 15 ---------------
 2 files changed, 22 deletions(-)

diff --git a/src/lib/evil/evil_pwd.c b/src/lib/evil/evil_pwd.c
index 03e74149ac..c45f9281a4 100644
--- a/src/lib/evil/evil_pwd.c
+++ b/src/lib/evil/evil_pwd.c
@@ -67,10 +67,3 @@ getpwnam(const char *n)
 
    return &pw;
 }
-
-struct passwd *
-getpwuid(uid_t uid)
-{
-   return getpwnam(getlogin());
-   (void)uid;
-}
diff --git a/src/lib/evil/pwd.h b/src/lib/evil/pwd.h
index 2d303381b7..104acd9600 100644
--- a/src/lib/evil/pwd.h
+++ b/src/lib/evil/pwd.h
@@ -72,21 +72,6 @@ struct passwd {
  */
 EAPI struct passwd *getpwnam(const char *n);
 
-/**
- * @brief Return a passwd structure.
- *
- * @param uid The User ID.
- * @return A stacally allocated passwd structure.
- *
- * This function fills a static buffer @ref passwd with @p uid and the
- * user name.
- *
- * Conformity: None.
- *
- * Supported OS: Windows XP.
- */
-EAPI struct passwd *getpwuid (uid_t uid);
-
 
 #ifdef __cplusplus
 }

-- 


Reply via email to