svn commit: r296106 - head/libexec/getty
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Feb 26 19:08:39 UTC 2016
Author: pfg
Date: Fri Feb 26 19:08:37 2016
New Revision: 296106
URL: https://svnweb.freebsd.org/changeset/base/296106
Log:
getty(8): Support VEOL2 and VSTATUS
Bring some type cleanups while here.
Obtained from: NetBSD
Modified:
head/libexec/getty/subr.c
Modified: head/libexec/getty/subr.c
==============================================================================
--- head/libexec/getty/subr.c Fri Feb 26 18:54:26 2016 (r296105)
+++ head/libexec/getty/subr.c Fri Feb 26 19:08:37 2016 (r296106)
@@ -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++) {
More information about the svn-src-all
mailing list