mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
If the console has no cncheckc method, use cngetc instead.
This commit is contained in:
parent
56de0c9a17
commit
9dd2370db6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158946
@ -598,7 +598,10 @@ cncheckc(void)
|
||||
STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) {
|
||||
cn = cnd->cnd_cn;
|
||||
if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) {
|
||||
c = cn->cn_checkc(cn);
|
||||
if (cn->cn_checkc != NULL)
|
||||
c = cn->cn_checkc(cn);
|
||||
else
|
||||
c = cn->cn_getc(cn);
|
||||
if (c != -1) {
|
||||
return (c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user