cnscan() should return -1 (no input) if there is no console device.
This commit is contained in:
parent
06c8e3f473
commit
2d5be04276
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue