diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-12-06 01:27:28 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-12-06 01:27:28 +0000 |
commit | 90874498a7a50b0afd2248dd2d6df787bb698802 (patch) | |
tree | 3c5815dd1b36b2b22271cc6445e4ec3e2d79f2db | |
parent | 391eb407420c2fc6028a1a658d0cbdbe10313509 (diff) | |
download | pw-darwin-90874498a7a50b0afd2248dd2d6df787bb698802.tar.gz pw-darwin-90874498a7a50b0afd2248dd2d6df787bb698802.tar.zst pw-darwin-90874498a7a50b0afd2248dd2d6df787bb698802.zip |
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.
-rw-r--r-- | pw/pw_user.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c index 4c62fe8..c8364ca 100644 --- a/pw/pw_user.c +++ b/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*"; |