Commit bde70294 authored by Eric Wong's avatar Eric Wong

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
parent 05036ef6
...@@ -344,7 +344,8 @@ static int oss_initDriver(AudioOutput * audioOutput, ConfigParam * param) { ...@@ -344,7 +344,8 @@ static int oss_initDriver(AudioOutput * audioOutput, ConfigParam * param) {
"device\n"); "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 " ERROR("Neither /dev/dsp nor /dev/sound/dsp "
"were found\n"); "were found\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment