cnscan() should return -1 (no input) if there is no console device.

This commit is contained in:
tsutsui 2008-03-01 05:21:50 +00:00
parent 06c8e3f473
commit 2d5be04276
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons.c,v 1.7 2005/12/11 12:17:04 christos Exp $ */
/* $NetBSD: cons.c,v 1.8 2008/03/01 05:21:50 tsutsui Exp $ */
/*
* Copyright (c) 1990, 1993
@ -165,7 +165,7 @@ cnscan()
{
if (cn_tab)
return ((*cn_tab->cn_scan)(cn_tab->cn_dev));
return (0);
return -1;
}
#ifdef CONS_BE

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons.c,v 1.6 2006/04/13 18:46:46 garbled Exp $ */
/* $NetBSD: cons.c,v 1.7 2008/03/01 05:21:50 tsutsui Exp $ */
/*
* Copyright (c) 1990, 1993
@ -163,7 +163,7 @@ cnscan(void)
if (cn_tab)
return ((*cn_tab->cn_scan)(cn_tab->cn_dev));
return (0);
return -1;
}
#ifdef CONS_VGA

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons.c,v 1.1 2007/12/17 19:09:47 garbled Exp $ */
/* $NetBSD: cons.c,v 1.2 2008/03/01 05:21:50 tsutsui Exp $ */
/*
* Copyright (c) 1990, 1993
@ -151,7 +151,7 @@ cnscan(void)
if (cn_tab)
return ((*cn_tab->cn_scan)(cn_tab->cn_dev));
return (0);
return -1;
}
#ifdef CONS_SERIAL