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 fdcf571..9e4ff85 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 ea87c96..3401280 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);