summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2005-12-28 10:08:08 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2005-12-28 10:08:08 +0000
commit59e8761c5b0a93fe0ffd0f91f2435e2e3164d4c8 (patch)
tree0bb5b9bbb92d8f86f4fb205dfd4eaf6207a86dc8 /sys
parent473b99c5d623273e80f21ee9c99a174bea803f71 (diff)
Fix totally bogus previous commit.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/dev/onyx.c4
-rw-r--r--sys/arch/macppc/dev/snapper.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/macppc/dev/onyx.c b/sys/arch/macppc/dev/onyx.c
index 65a794201b4..28be4a010f5 100644
--- a/sys/arch/macppc/dev/onyx.c
+++ b/sys/arch/macppc/dev/onyx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: onyx.c,v 1.5 2005/12/17 00:04:10 kettenis Exp $ */
+/* $OpenBSD: onyx.c,v 1.6 2005/12/28 10:08:07 kettenis Exp $ */
/*-
* Copyright (c) 2005 Tsubai Masanari. All rights reserved.
@@ -131,7 +131,7 @@ onyx_match(struct device *parent, void *match, void *aux)
return (0);
if (OF_getprop(soundchip, "platform-onyx-codec-ref",
- &soundcodec, sizeof soundcodec))
+ &soundcodec, sizeof soundcodec) == sizeof soundcodec)
return (1);
/*
diff --git a/sys/arch/macppc/dev/snapper.c b/sys/arch/macppc/dev/snapper.c
index 0459670f007..fe6211f222b 100644
--- a/sys/arch/macppc/dev/snapper.c
+++ b/sys/arch/macppc/dev/snapper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snapper.c,v 1.26 2005/12/17 00:04:10 kettenis Exp $ */
+/* $OpenBSD: snapper.c,v 1.27 2005/12/28 10:08:07 kettenis Exp $ */
/* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
@@ -295,11 +295,11 @@ snapper_match(struct device *parent, void *match, void *aux)
bzero(compat, sizeof compat);
OF_getprop(soundchip, "compatible", compat, sizeof compat);
- if (strcmp(compat, "snapper"))
+ if (strcmp(compat, "snapper") == 0)
return (1);
if (OF_getprop(soundchip, "platform-tas-codec-ref",
- &soundcodec, sizeof soundcodec))
+ &soundcodec, sizeof soundcodec) == sizeof soundcodec)
return (1);
return (0);