Quieten some warnings as a result of changes in ls_items[] constness over

time.
This commit is contained in:
Peter Wemm 1999-06-26 12:19:03 +00:00
parent 2ece3ed4c8
commit 82e4c0061b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48242
2 changed files with 6 additions and 8 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
* $Id: cons.c,v 1.67 1999/05/31 11:25:41 phk Exp $
* $Id: cons.c,v 1.68 1999/06/22 14:12:54 yokota Exp $
*/
#include "opt_devfs.h"
@ -114,14 +114,13 @@ CONS_DRIVER(cons, NULL, NULL, NULL, NULL, NULL, NULL);
void
cninit()
{
struct consdev *best_cp, *cp;
const struct consdev **list;
struct consdev **list, *best_cp, *cp;
/*
* Find the first console with the highest priority.
*/
best_cp = NULL;
list = (const struct consdev **)cons_set.ls_items;
list = (struct consdev **)cons_set.ls_items;
while ((cp = *list++) != NULL) {
if (cp->cn_probe == NULL)
continue;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
* $Id: cons.c,v 1.67 1999/05/31 11:25:41 phk Exp $
* $Id: cons.c,v 1.68 1999/06/22 14:12:54 yokota Exp $
*/
#include "opt_devfs.h"
@ -114,14 +114,13 @@ CONS_DRIVER(cons, NULL, NULL, NULL, NULL, NULL, NULL);
void
cninit()
{
struct consdev *best_cp, *cp;
const struct consdev **list;
struct consdev **list, *best_cp, *cp;
/*
* Find the first console with the highest priority.
*/
best_cp = NULL;
list = (const struct consdev **)cons_set.ls_items;
list = (struct consdev **)cons_set.ls_items;
while ((cp = *list++) != NULL) {
if (cp->cn_probe == NULL)
continue;