Fix another fatal typo that causes zskbd_cngetc() to stall as dzkbd.

Tested on my DEC 3000/300 and LK421.
Should be pulled up to netbsd-10 and netbsd-9.

XXX: sys/arch/vax/uba/qvkbd.c seems missed in the following lk201 changes:
 https://mail-index.netbsd.org/source-changes/2015/01/02/msg062024.html
This commit is contained in:
tsutsui 2024-02-17 06:35:25 +00:00
parent 02f7676d3a
commit fadaceb783
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zskbd.c,v 1.21 2021/08/07 16:19:16 thorpej Exp $ */
/* $NetBSD: zskbd.c,v 1.22 2024/02/17 06:35:25 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zskbd.c,v 1.21 2021/08/07 16:19:16 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: zskbd.c,v 1.22 2024/02/17 06:35:25 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -281,7 +281,7 @@ zskbd_cngetc(void *v, u_int *type, int *data)
do {
c = zs_getc(zsi->zsi_cs);
} while (!lk201_decode(&zsi->zsi_ks, 0, c, type, data) == LKD_NODATA);
} while (lk201_decode(&zsi->zsi_ks, 0, c, type, data) == LKD_NODATA);
}
static void