summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-06 01:27:28 +0000
committered <ed@FreeBSD.org>2009-12-06 01:27:28 +0000
commit1112c6186a933d43332e13ebc8586f143070ae3e (patch)
treedf62d59b008546799a8f3b9440844e8767350de5 /usr.sbin/pw
parent8b1e41b7e2b6f4279698ec2ad776fc1a6aa2f2a2 (diff)
downloadFreeBSD-src-1112c6186a933d43332e13ebc8586f143070ae3e.zip
FreeBSD-src-1112c6186a933d43332e13ebc8586f143070ae3e.tar.gz
Make pw(8) build without <utmp.h>.
The size of the username record in utmp files should not influence the maximum username length. Right now ut_user/ut_name is big enough, so in this case it's dead code anyway.
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r--usr.sbin/pw/pw_user.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index 4c62fe8..c8364ca 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/pw/pw_user.c
@@ -41,16 +41,11 @@ static const char rcsid[] =
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
-#include <utmp.h>
#include <login_cap.h>
#include "pw.h"
#include "bitmap.h"
-#if (MAXLOGNAME-1) > UT_NAMESIZE
-#define LOGNAMESIZE UT_NAMESIZE
-#else
#define LOGNAMESIZE (MAXLOGNAME-1)
-#endif
static char locked_str[] = "*LOCKED*";
OpenPOWER on IntegriCloud