summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-31 01:09:33 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-31 01:09:33 +0000
commit8d63b4c71b2397feaaa3929488a49be32ed8c8ca (patch)
tree682199245b88203d09fe7b7407914d0d79b55d7a
parente5a73b0c07cffcb850674999c3a4ce5f58a40980 (diff)
promvec was never initialized. For now, just call OF directly.
-rw-r--r--sys/arch/sparc64/sparc64/openprom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/openprom.c b/sys/arch/sparc64/sparc64/openprom.c
index 6657ec1e34e..942160c276c 100644
--- a/sys/arch/sparc64/sparc64/openprom.c
+++ b/sys/arch/sparc64/sparc64/openprom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openprom.c,v 1.4 2002/06/14 04:16:23 art Exp $ */
+/* $OpenBSD: openprom.c,v 1.5 2002/07/31 01:09:32 jason Exp $ */
/* $NetBSD: openprom.c,v 1.2 2000/11/18 23:45:05 mrg Exp $ */
/*
@@ -99,8 +99,8 @@ openpromcheckid(sid, tid)
register struct nodeops *no;
no = promvec->pv_nodeops;
- for (; sid != 0; sid = no->no_nextnode(sid))
- if (sid == tid || openpromcheckid(no->no_child(sid), tid))
+ for (; sid != 0; sid = OF_peer(sid))
+ if (sid == tid || openpromcheckid(OF_child(sid), tid))
return (1);
return (0);