Module Name: src
Committed By: drochner
Date: Tue Aug 18 11:12:06 UTC 2009
Modified Files:
src/sys/dev/pci: sv.c
Log Message:
comparision with a string literal by "==" can't work (found by gcc-4.4.1),
replace with strcmp()
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/sv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/sv.c
diff -u src/sys/dev/pci/sv.c:1.42 src/sys/dev/pci/sv.c:1.43
--- src/sys/dev/pci/sv.c:1.42 Tue May 12 08:23:01 2009
+++ src/sys/dev/pci/sv.c Tue Aug 18 11:12:05 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: sv.c,v 1.42 2009/05/12 08:23:01 cegger Exp $ */
+/* $NetBSD: sv.c,v 1.43 2009/08/18 11:12:05 drochner Exp $ */
/* $OpenBSD: sv.c,v 1.2 1998/07/13 01:50:15 csapuntz Exp $ */
/*
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sv.c,v 1.42 2009/05/12 08:23:01 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sv.c,v 1.43 2009/08/18 11:12:05 drochner Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1358,7 +1358,7 @@
sv_mixer_set_port(sc, &cp);
for (i = 0; i < ARRAY_SIZE(ports); i++) {
- if (ports[i].audio == AudioNdac) {
+ if (!strcmp(ports[i].audio, AudioNdac)) {
cp.type = AUDIO_MIXER_ENUM;
cp.dev = SV_FIRST_MIXER + i * SV_DEVICES_PER_PORT + 1;
cp.un.ord = 0;