aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2005-08-07 10:17:28 +0000
committerEric Wong <normalperson@yhbt.net>2005-08-07 10:17:28 +0000
commitbde702940945a0ddf35da20e07bb862db7c31583 (patch)
treecb8e06b424d886bb82da514b66479e3b26ed2b51 /src/audioOutputs
parent05036ef6182568bdcc0811be727d3b9e8024d07e (diff)
downloadmpd-bde702940945a0ddf35da20e07bb862db7c31583.tar.gz
mpd-bde702940945a0ddf35da20e07bb862db7c31583.tar.xz
mpd-bde702940945a0ddf35da20e07bb862db7c31583.zip
fix warning reported gcc 4.0: x == y == z does not work as intended
git-svn-id: https://svn.musicpd.org/mpd/trunk@3422 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_oss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_oss.c b/src/audioOutputs/audioOutput_oss.c
index 9eea9c788..ad5b93f6b 100644
--- a/src/audioOutputs/audioOutput_oss.c
+++ b/src/audioOutputs/audioOutput_oss.c
@@ -344,7 +344,8 @@ static int oss_initDriver(AudioOutput * audioOutput, ConfigParam * param) {
"device\n");
}
- if(ret[0] == ret[1] == OSS_STAT_DOESN_T_EXIST) {
+ if((ret[0] == OSS_STAT_DOESN_T_EXIST) &&
+ (ret[1] == OSS_STAT_DOESN_T_EXIST)) {
ERROR("Neither /dev/dsp nor /dev/sound/dsp "
"were found\n");
}