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
This commit is contained in:
Eric Wong 2005-08-07 10:17:28 +00:00
parent 05036ef618
commit bde7029409

View File

@ -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");
}