summaryrefslogtreecommitdiffstats
path: root/libexec/getty
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-02-26 19:08:37 +0000
committerpfg <pfg@FreeBSD.org>2016-02-26 19:08:37 +0000
commitf87ffe419a276d1b7b7ac241b395346cbd676e05 (patch)
treedf5c6a17189f7eb4e69447ac1eb8783d12633d61 /libexec/getty
parent23405aa824e51e5fad7b365e675a7286cd0c61c6 (diff)
downloadFreeBSD-src-f87ffe419a276d1b7b7ac241b395346cbd676e05.zip
FreeBSD-src-f87ffe419a276d1b7b7ac241b395346cbd676e05.tar.gz
getty(8): Support VEOL2 and VSTATUS
Bring some type cleanups while here. Obtained from: NetBSD
Diffstat (limited to 'libexec/getty')
-rw-r--r--libexec/getty/subr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 5ce03bd..a38bcb0 100644
--- a/libexec/getty/subr.c
+++ b/libexec/getty/subr.c
@@ -73,7 +73,7 @@ gettable(const char *name, char *buf)
static int firsttime = 1;
dba[0] = _PATH_GETTYTAB;
- dba[1] = 0;
+ dba[1] = NULL;
if (firsttime) {
/*
@@ -212,7 +212,8 @@ charvars[] = {
&tmode.c_cc[VQUIT], &tmode.c_cc[VSTART], &tmode.c_cc[VSTOP],
&tmode.c_cc[VEOF], &tmode.c_cc[VEOL], &tmode.c_cc[VSUSP],
&tmode.c_cc[VDSUSP], &tmode.c_cc[VREPRINT], &tmode.c_cc[VDISCARD],
- &tmode.c_cc[VWERASE], &tmode.c_cc[VLNEXT], 0
+ &tmode.c_cc[VWERASE], &tmode.c_cc[VLNEXT], &tmode.c_cc[VSTATUS],
+ &tmode.c_cc[VEOL2], 0
};
void
@@ -595,7 +596,7 @@ struct portselect {
{ "B4800", "std.4800" },
{ "B9600", "std.9600" },
{ "B19200", "std.19200" },
- { 0 }
+ { NULL, NULL }
};
const char *
@@ -604,7 +605,7 @@ portselector(void)
char c, baud[20];
const char *type = "default";
struct portselect *ps;
- int len;
+ size_t len;
alarm(5*60);
for (len = 0; len < sizeof (baud) - 1; len++) {
OpenPOWER on IntegriCloud