Module Name:    src
Committed By:   tsutsui
Date:           Sat Feb 17 06:35:25 UTC 2024

Modified Files:
        src/sys/dev/tc: zskbd.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/tc/zskbd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/tc/zskbd.c
diff -u src/sys/dev/tc/zskbd.c:1.21 src/sys/dev/tc/zskbd.c:1.22
--- src/sys/dev/tc/zskbd.c:1.21	Sat Aug  7 16:19:16 2021
+++ src/sys/dev/tc/zskbd.c	Sat Feb 17 06:35:25 2024
@@ -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 *
 
 	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

Reply via email to