summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-02-06 22:03:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-02-06 22:03:25 +0000
commit9ec0373c90abba62c24ecf1663b040d6515d5431 (patch)
treeebf938a6c1e07494fe3643cbe34b3fcd542a7db5
parenta2d2b97760e11b1ea18562858b7f22f6a57a789c (diff)
Evil typo; spotted by Thorsten Glaser
-rw-r--r--sys/dev/ic/vga.c4
-rw-r--r--sys/dev/isa/ega.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c
index a80b3392163..4854a63ce30 100644
--- a/sys/dev/ic/vga.c
+++ b/sys/dev/ic/vga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga.c,v 1.43 2006/12/02 19:11:09 miod Exp $ */
+/* $OpenBSD: vga.c,v 1.44 2007/02/06 22:03:23 miod Exp $ */
/* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */
/*
@@ -1012,7 +1012,7 @@ vga_unpack_attr(id, attr, fg, bg, ul)
} else {
*fg = pctoansi[attr & 0x07];
*bg = pctoansi[(attr & 0x70) >> 4];
- if (*ul != NULL)
+ if (ul != NULL)
*ul = 0;
}
if (attr & FG_INTENSE)
diff --git a/sys/dev/isa/ega.c b/sys/dev/isa/ega.c
index a63a028455a..bc93ef764b1 100644
--- a/sys/dev/isa/ega.c
+++ b/sys/dev/isa/ega.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ega.c,v 1.11 2006/12/02 19:11:11 miod Exp $ */
+/* $OpenBSD: ega.c,v 1.12 2007/02/06 22:03:24 miod Exp $ */
/* $NetBSD: ega.c,v 1.4.4.1 2000/06/30 16:27:47 simonb Exp $ */
/*
@@ -916,7 +916,7 @@ ega_unpack_attr(id, attr, fg, bg, ul)
} else {
*fg = pctoansi[attr & 0x07];
*bg = pctoansi[(attr & 0x70) >> 4];
- if (*ul != NULL)
+ if (ul != NULL)
*ul = 0;
}
if (attr & FG_INTENSE)