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

Now wd boot works on Qube2700 (which doesn't have serial console).
This commit is contained in:
tsutsui 2008-03-01 05:15:31 +00:00
parent 2222627b2d
commit 06c8e3f473
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons.c,v 1.5 2007/10/17 19:54:09 garbled Exp $ */
/* $NetBSD: cons.c,v 1.6 2008/03/01 05:15:31 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_FB