summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/ls.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-19 00:05:59 +0000
committerimp <imp@FreeBSD.org>2002-02-19 00:05:59 +0000
commit60cc340d82f5a470fed8ad4fe6d885a215c0f2c6 (patch)
tree4d682fcb9116e7b87abdc334d07500b7f166fa9a /usr.bin/find/ls.c
parent8818100b0fa5f9b2ff855015b36b15b9deb1726f (diff)
downloadFreeBSD-src-60cc340d82f5a470fed8ad4fe6d885a215c0f2c6.zip
FreeBSD-src-60cc340d82f5a470fed8ad4fe6d885a215c0f2c6.tar.gz
Fixed divots that I created when I moved prototypes of group_from_gid
and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp
Diffstat (limited to 'usr.bin/find/ls.c')
-rw-r--r--usr.bin/find/ls.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c
index d033973..b0ce664 100644
--- a/usr.bin/find/ls.c
+++ b/usr.bin/find/ls.c
@@ -45,13 +45,19 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
+#include <fts.h>
+#include <grp.h>
#include <langinfo.h>
+#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <utmp.h>
+#include "find.h"
+#include "extern.h"
+
/* Derived from the print routines in the ls(1) source code. */
static void printlink __P((char *));
@@ -63,7 +69,7 @@ printlong(name, accpath, sb)
char *accpath; /* current valid path to filename */
struct stat *sb; /* stat buffer */
{
- char modep[15], *user_from_uid(), *group_from_gid();
+ char modep[15];
(void)printf("%6lu %4qd ", (u_long) sb->st_ino, sb->st_blocks);
(void)strmode(sb->st_mode, modep);
OpenPOWER on IntegriCloud