-/* $OpenBSD: main.c,v 1.34 2014/11/19 13:35:37 krw Exp $ */
+/* $OpenBSD: main.c,v 1.35 2015/01/16 05:53:49 deraadt Exp $ */
/*-
* Copyright (c) 1980, 1993
* SUCH DAMAGE.
*/
-#include <sys/param.h>
#include <sys/stat.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <syslog.h>
#include <stdio.h>
#include <unistd.h>
+#include <limits.h>
#include <util.h>
#include "gettytab.h"
int crmod, digit, lower, upper;
-char hostname[MAXHOSTNAMELEN];
+char hostname[HOST_NAME_MAX+1];
struct utsname kerninfo;
-char name[MAXLOGNAME];
+char name[LOGIN_NAME_MAX];
char dev[] = _PATH_DEV;
char ttyn[32];
char *portselector(void);