diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-25 23:20:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-26 01:24:38 +0100 |
commit | d02608170e599b1ffbc7c9a22062bae2579d6e36 (patch) | |
tree | 607136c4d409d664388def7b934bedc23604f4d0 /src/basic/user-util.h | |
parent | user-util: simplify uid parsing a bit (diff) | |
download | systemd-d02608170e599b1ffbc7c9a22062bae2579d6e36.tar.xz systemd-d02608170e599b1ffbc7c9a22062bae2579d6e36.zip |
util: remove lookup_uid(), replace by uid_to_name()
So far we had two pretty much identical calls in user-util.[ch]:
lookup_uid() and uid_to_name(). Get rid of the former, in favour of the
latter, and while we are at it, rewrite it, to use getpwuid_r()
correctly, inside an allocation loop, as POSIX intended.
Diffstat (limited to 'src/basic/user-util.h')
-rw-r--r-- | src/basic/user-util.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/basic/user-util.h b/src/basic/user-util.h index 9263ede741..7995698f27 100644 --- a/src/basic/user-util.h +++ b/src/basic/user-util.h @@ -36,7 +36,6 @@ static inline int parse_gid(const char *s, gid_t *ret_gid) { return parse_uid(s, (uid_t*) ret_gid); } -char* lookup_uid(uid_t uid); char* getlogname_malloc(void); char* getusername_malloc(void); |