summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-07-22 11:36:25 +0000
committerrobert <robert@FreeBSD.org>2002-07-22 11:36:25 +0000
commit28e1b1786ca3342d3a2e208c6af3dd9738aa87a9 (patch)
tree61f68486cbbbe678a0a38cc405116bd4d462d013
parentea42527996c15c30c7cd3b783bc16873c1c65f74 (diff)
downloadFreeBSD-src-28e1b1786ca3342d3a2e208c6af3dd9738aa87a9.zip
FreeBSD-src-28e1b1786ca3342d3a2e208c6af3dd9738aa87a9.tar.gz
- Use MAXLOGNAME - 1 rather than UT_NAMESIZE.
- Remove the inclusion of <utmp.h>.
-rw-r--r--usr.bin/find/ls.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c
index 15179fb..79e8f59 100644
--- a/usr.bin/find/ls.c
+++ b/usr.bin/find/ls.c
@@ -53,7 +53,6 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <utmp.h>
#include "find.h"
@@ -72,8 +71,8 @@ printlong(name, accpath, sb)
(void)printf("%6lu %4"PRId64" ", (u_long) sb->st_ino, sb->st_blocks);
(void)strmode(sb->st_mode, modep);
- (void)printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, UT_NAMESIZE,
- user_from_uid(sb->st_uid, 0), UT_NAMESIZE,
+ (void)printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, MAXLOGNAME - 1,
+ user_from_uid(sb->st_uid, 0), MAXLOGNAME - 1,
group_from_gid(sb->st_gid, 0));
if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode))
OpenPOWER on IntegriCloud