diff options
author | ed <ed@FreeBSD.org> | 2009-12-06 01:27:28 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-12-06 01:27:28 +0000 |
commit | 1112c6186a933d43332e13ebc8586f143070ae3e (patch) | |
tree | df62d59b008546799a8f3b9440844e8767350de5 /usr.sbin/pw | |
parent | 8b1e41b7e2b6f4279698ec2ad776fc1a6aa2f2a2 (diff) | |
download | FreeBSD-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.c | 5 |
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*"; |