Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons wsemul_vt100_subr: spell edp->tabs assertion ...
details: https://anonhg.NetBSD.org/src/rev/069e54360c19
branches: trunk
changeset: 373760:069e54360c19
user: uwe <uwe%NetBSD.org@localhost>
date: Sun Feb 26 14:00:42 2023 +0000
description:
wsemul_vt100_subr: spell edp->tabs assertion with NULL
diffstat:
sys/dev/wscons/wsemul_vt100_subr.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 26fbe6c01e3f -r 069e54360c19 sys/dev/wscons/wsemul_vt100_subr.c
--- a/sys/dev/wscons/wsemul_vt100_subr.c Sun Feb 26 13:57:56 2023 +0000
+++ b/sys/dev/wscons/wsemul_vt100_subr.c Sun Feb 26 14:00:42 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_vt100_subr.c,v 1.29 2023/02/26 13:57:56 uwe Exp $ */
+/* $NetBSD: wsemul_vt100_subr.c,v 1.30 2023/02/26 14:00:42 uwe Exp $ */
/*
* Copyright (c) 1998
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_subr.c,v 1.29 2023/02/26 13:57:56 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_subr.c,v 1.30 2023/02/26 14:00:42 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -331,7 +331,7 @@
{
int i, j, ps = 0;
char buf[20];
- KASSERT(edp->tabs != 0);
+ KASSERT(edp->tabs != NULL);
wsdisplay_emulinput(edp->cbcookie, "\033P2$u", 5);
for (i = 0; i < edp->ncols; i++)
if (edp->tabs[i]) {
@@ -483,7 +483,7 @@
edp->crow = uimin(DEF1_ARG(edp, 0) - 1, edp->nrows - 1);
break;
case 'g': /* TBC */
- KASSERT(edp->tabs != 0);
+ KASSERT(edp->tabs != NULL);
switch (ARG(edp, 0)) {
case 0:
edp->tabs[edp->ccol] = 0;
@@ -766,7 +766,7 @@
case 0: /* not handled */
return;
case DCSTYPE_TABRESTORE:
- KASSERT(edp->tabs != 0);
+ KASSERT(edp->tabs != NULL);
KASSERT(edp->ncols <= 1024);
memset(edp->tabs, 0, edp->ncols);
pos = 0;
Home |
Main Index |
Thread Index |
Old Index