summaryrefslogtreecommitdiffstats
path: root/bin/ps/keyword.c
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-07-08 09:08:51 +0000
committerrobert <robert@FreeBSD.org>2002-07-08 09:08:51 +0000
commit47f9f58c0a658fe72bce5ce36dd5d481bb1be4e5 (patch)
treec258d9db39a00f4ce4073340d4df9f4c6d0d56cd /bin/ps/keyword.c
parent221de479d2ccf69bbba8db1d100cfc8374ea0027 (diff)
downloadFreeBSD-src-47f9f58c0a658fe72bce5ce36dd5d481bb1be4e5.zip
FreeBSD-src-47f9f58c0a658fe72bce5ce36dd5d481bb1be4e5.tar.gz
- Use (MAXLOGNAME - 1) where UT_NAMESIZE was used to be able to
(-)remove the inclusions of <utmp.h>.
Diffstat (limited to 'bin/ps/keyword.c')
-rw-r--r--bin/ps/keyword.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 4bc00fc..5e4f37f 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <utmp.h>
#include "ps.h"
@@ -75,7 +74,7 @@ int utime(), stime(), ixrss(), idrss(), isrss();
#define UIDLEN 5
#define PIDFMT "d"
#define PIDLEN 5
-#define USERLEN UT_NAMESIZE
+#define USERLEN (MAXLOGNAME - 1)
static VAR var[] = {
{"%cpu", "%CPU", NULL, 0, pcpu, NULL, 4, 0, CHAR, NULL, 0},
OpenPOWER on IntegriCloud