Apply the

earlyconsgetc: return -1 instead of 0 because we will never produce input

fix to all copies.
This commit is contained in:
skrll 2021-03-20 05:58:22 +00:00
parent 7a7ca36496
commit ea0b29cd75
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bcm53xx_machdep.c,v 1.26 2020/12/03 07:45:52 skrll Exp $ */
/* $NetBSD: bcm53xx_machdep.c,v 1.27 2021/03/20 05:58:22 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@ -33,7 +33,7 @@
#define IDM_PRIVATE
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.26 2020/12/03 07:45:52 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.27 2021/03/20 05:58:22 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_console.h"
@ -123,7 +123,7 @@ earlyconsputc(dev_t dev, int c)
static int
earlyconsgetc(dev_t dev)
{
return 0;
return -1;
}
static struct consdev earlycons = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: beagle_machdep.c,v 1.86 2020/12/03 07:45:52 skrll Exp $ */
/* $NetBSD: beagle_machdep.c,v 1.87 2021/03/20 05:58:22 skrll Exp $ */
/*
* Machine dependent functions for kernel setup for TI OSK5912 board.
@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.86 2020/12/03 07:45:52 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.87 2021/03/20 05:58:22 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_console.h"
@ -297,7 +297,7 @@ earlyconsputc(dev_t dev, int c)
static int
earlyconsgetc(dev_t dev)
{
return 0;
return -1;
}
static struct consdev earlycons = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: zynq_machdep.c,v 1.16 2020/12/03 07:45:53 skrll Exp $ */
/* $NetBSD: zynq_machdep.c,v 1.17 2021/03/20 05:58:23 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.16 2020/12/03 07:45:53 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.17 2021/03/20 05:58:23 skrll Exp $");
#include "opt_evbarm_boardtype.h"
#include "opt_arm_debug.h"
@ -116,7 +116,7 @@ earlyconsputc(dev_t dev, int c)
static int
earlyconsgetc(dev_t dev)
{
return 0;
return -1;
}
static struct consdev earlycons = {