diff options
| author | Warner Losh <imp@FreeBSD.org> | 2002-03-22 02:35:47 +0000 | 
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2002-03-22 02:35:47 +0000 | 
| commit | ae10a3fccee4a8ae57d593489633f770395b98f3 (patch) | |
| tree | 1896b3c9e45afc5d3a9cdc4a5309f9ba61f9262b /lib | |
| parent | 1b350b4542f30b7c87dca3453b056eda9d0e190d (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/gen/pwcache.3 | 4 | ||||
| -rw-r--r-- | lib/libc/gen/pwcache.c | 4 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/lib/libc/gen/pwcache.3 b/lib/libc/gen/pwcache.3 index eb2f9e08bf41..dc8c77c653ac 100644 --- a/lib/libc/gen/pwcache.3 +++ b/lib/libc/gen/pwcache.3 @@ -42,10 +42,10 @@  .Lb libc  .Sh SYNOPSIS  .In pwd.h -.Ft char * +.Ft const char *  .Fn user_from_uid "unsigned long uid" "int nouser"  .In grp.h -.Ft char * +.Ft const char *  .Fn group_from_gid "unsigned long gid" "int nogroup"  .Sh DESCRIPTION  The diff --git a/lib/libc/gen/pwcache.c b/lib/libc/gen/pwcache.c index e5ed90bc081f..cb2aa42123de 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 { | 
