]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
util: make lookup_uid() global
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 27 Aug 2014 16:03:29 +0000 (18:03 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 27 Aug 2014 16:42:28 +0000 (18:42 +0200)
This is a useful helper, make it global. It will be required for
libsystemd-terminal, at minimum.

src/shared/util.c
src/shared/util.h

index fdcf5719fa54d0b9b3b47de0c24e60a785c6107b..9e4ff85ffb907b5fcc5cc52d5c9dde3e9a725223 100644 (file)
@@ -2604,7 +2604,7 @@ bool hostname_is_set(void) {
         return !isempty(u.nodename) && !streq(u.nodename, "(none)");
 }
 
-static char *lookup_uid(uid_t uid) {
+char *lookup_uid(uid_t uid) {
         long bufsize;
         char *name;
         _cleanup_free_ char *buf = NULL;
index ea87c9695604b611a070c2d17cc50f012185b6e4..3401280d0952a4481e8a7e0ff37ffa68a92c9a26 100644 (file)
@@ -432,6 +432,7 @@ int sigprocmask_many(int how, ...);
 
 bool hostname_is_set(void);
 
+char* lookup_uid(uid_t uid);
 char* gethostname_malloc(void);
 char* getlogname_malloc(void);
 char* getusername_malloc(void);