summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-09-23 20:45:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-09-23 20:45:28 +0000
commit9606ef23d5ca9676784ba103a2f87f033c46fad9 (patch)
tree2a04d986fe0416e0d5aa7a70cb8229951b11325f /sys
parent7c03fa05f7428935f2c035df6dcde8f220191e55 (diff)
Plug more uninitialized variables.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/macppc/clock.c4
-rw-r--r--sys/arch/macppc/macppc/ofw_machdep.c8
-rw-r--r--sys/arch/macppc/pci/vgafb.c4
3 files changed, 9 insertions, 7 deletions
diff --git a/sys/arch/macppc/macppc/clock.c b/sys/arch/macppc/macppc/clock.c
index 215e8c46b17..32da2f7330f 100644
--- a/sys/arch/macppc/macppc/clock.c
+++ b/sys/arch/macppc/macppc/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.23 2008/09/18 03:56:25 drahn Exp $ */
+/* $OpenBSD: clock.c,v 1.24 2008/09/23 20:45:26 miod Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
@@ -349,7 +349,7 @@ cpu_startclock()
void
calc_delayconst(void)
{
- int qhandle, phandle;
+ int qhandle, phandle = 0;
char name[32];
int s;
diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c
index e00a62c9133..a98e2985c90 100644
--- a/sys/arch/macppc/macppc/ofw_machdep.c
+++ b/sys/arch/macppc/macppc/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.32 2008/06/15 07:37:05 todd Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.33 2008/09/23 20:45:26 miod Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -301,7 +301,7 @@ ofw_find_keyboard()
{
int stdin_node;
char iname[32];
- int len, attach;
+ int len, attach = 0;
stdin_node = OF_instance_to_package(OF_stdin);
len = OF_getprop(stdin_node, "name", iname, 20);
@@ -335,13 +335,13 @@ ofw_find_keyboard()
#if NUKBD > 0
printf(", using USB\n");
ukbd_cnattach();
- attach=1;
+ attach = 1;
#endif
} else if (ofw_have_kbd == OFW_HAVE_ADBKBD) {
#if NAKBD >0
printf(", using ADB\n");
akbd_cnattach();
- attach=1;
+ attach = 1;
#endif
}
if (attach == 0) {
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c
index 01388b1452a..7b8573ed282 100644
--- a/sys/arch/macppc/pci/vgafb.c
+++ b/sys/arch/macppc/pci/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.34 2008/01/23 16:37:57 jsing Exp $ */
+/* $OpenBSD: vgafb.c,v 1.35 2008/09/23 20:45:27 miod Exp $ */
/* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */
/*
@@ -383,6 +383,8 @@ vgafb_mmap(void *v, off_t offset, int prot)
case WSDISPLAYIO_MODE_DUMBFB:
if (offset >= 0x00000 && offset < vc->memsize)
h = vc->vc_paddr + offset;
+ else
+ h = -1;
break;
}