summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/pwcache.33
-rw-r--r--lib/libc/gen/pwcache.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/pwcache.3 b/lib/libc/gen/pwcache.3
index 0a8c2b0..eb2f9e0 100644
--- a/lib/libc/gen/pwcache.3
+++ b/lib/libc/gen/pwcache.3
@@ -41,9 +41,10 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In stdlib.h
+.In pwd.h
.Ft char *
.Fn user_from_uid "unsigned long uid" "int nouser"
+.In grp.h
.Ft char *
.Fn group_from_gid "unsigned long gid" "int nogroup"
.Sh DESCRIPTION
diff --git a/lib/libc/gen/pwcache.c b/lib/libc/gen/pwcache.c
index d573c2d..e5ed90b 100644
--- a/lib/libc/gen/pwcache.c
+++ b/lib/libc/gen/pwcache.c
@@ -40,9 +40,9 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <grp.h>
-#include <string.h>
#include <pwd.h>
#include <stdio.h>
+#include <string.h>
#include <utmp.h>
#define NCACHE 64 /* power of 2 */
OpenPOWER on IntegriCloud