diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-04 18:20:23 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-04 18:20:23 +0000 |
commit | d7417a517ff1dbb6a7c38328423d1ed12d5144df (patch) | |
tree | 8871bdb73e6b9fc699395b799e974d4f98987a48 /cpukit | |
parent | 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-d7417a517ff1dbb6a7c38328423d1ed12d5144df.tar.bz2 |
2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/pwcache.c: Include "internal.h".
Make user_from_uid non-static.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 2 | ||||
-rw-r--r-- | cpukit/libmisc/shell/pwcache.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index fea1545d8b..9d8764a432 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,7 @@ 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org> + * libmisc/shell/pwcache.c: Include "internal.h". + Make user_from_uid non-static. * libmisc/shell/internal.h: Add user_from_uid, group_from_gid. 2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org> diff --git a/cpukit/libmisc/shell/pwcache.c b/cpukit/libmisc/shell/pwcache.c index 0f0512f0cf..333d554b52 100644 --- a/cpukit/libmisc/shell/pwcache.c +++ b/cpukit/libmisc/shell/pwcache.c @@ -43,14 +43,15 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/pwcache.c,v 1.11 2007/01/09 00:27:55 imp Ex #include <pwd.h> #include <stdio.h> #include <string.h> -//#include <utmp.h> + +#include "internal.h" #define UT_NAMESIZE 64 #define NCACHE 64 /* power of 2 */ #define MASK (NCACHE - 1) /* bits to store with */ -static const char * +const char * user_from_uid(uid_t uid, int nouser) { static struct ncache { |