diff options
author | imp <imp@FreeBSD.org> | 2002-03-22 02:35:47 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-03-22 02:35:47 +0000 |
commit | bb8112f72f4be228031dbf39fdda008479370138 (patch) | |
tree | 1896b3c9e45afc5d3a9cdc4a5309f9ba61f9262b /lib/libc/gen/pwcache.c | |
parent | d8370f667da0469f2618c75d4827cd30d389f233 (diff) | |
download | FreeBSD-src-bb8112f72f4be228031dbf39fdda008479370138.zip FreeBSD-src-bb8112f72f4be228031dbf39fdda008479370138.tar.gz |
Make user_from_uid and group_from_gid return const char *, just like
NetBSD. Update man page to reflect this.
Diffstat (limited to 'lib/libc/gen/pwcache.c')
-rw-r--r-- | lib/libc/gen/pwcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/pwcache.c b/lib/libc/gen/pwcache.c index e5ed90b..cb2aa42 100644 --- a/lib/libc/gen/pwcache.c +++ b/lib/libc/gen/pwcache.c @@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$"); #define NCACHE 64 /* power of 2 */ #define MASK (NCACHE - 1) /* bits to store with */ -char * +const char * user_from_uid(uid_t uid, int nouser) { static struct ncache { @@ -82,7 +82,7 @@ user_from_uid(uid_t uid, int nouser) return ((nouser && !cp->found) ? NULL : cp->name); } -char * +const char * group_from_gid(gid_t gid, int nogroup) { static struct ncache { |