From bde702940945a0ddf35da20e07bb862db7c31583 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Aug 2005 10:17:28 +0000 Subject: 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 --- src/audioOutputs/audioOutput_oss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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"); } -- cgit v1.2.3