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.
This commit is contained in:
Ed Schouten 2009-12-06 01:27:28 +00:00
parent dc65bcacb2
commit 41d6f23028
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200173

View File

@ -41,16 +41,11 @@ static const char rcsid[] =
#include <sys/time.h> #include <sys/time.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <unistd.h> #include <unistd.h>
#include <utmp.h>
#include <login_cap.h> #include <login_cap.h>
#include "pw.h" #include "pw.h"
#include "bitmap.h" #include "bitmap.h"
#if (MAXLOGNAME-1) > UT_NAMESIZE
#define LOGNAMESIZE UT_NAMESIZE
#else
#define LOGNAMESIZE (MAXLOGNAME-1) #define LOGNAMESIZE (MAXLOGNAME-1)
#endif
static char locked_str[] = "*LOCKED*"; static char locked_str[] = "*LOCKED*";