wmcdplay: Add parentheses in cdctl.h.

This avoids the following warning during build: "warning: suggest parentheses
around assignment used as truth value [-Wparentheses]" .

Patch from Debian [1].

[1] http://sources.debian.net/src/wmcdplay/1.0beta1-13/debian/patches/add_parentheses.patch/
This commit is contained in:
Doug Torrance 2014-12-18 12:30:43 -06:00 committed by Carlos R. Mafra
parent 60cb7c34e9
commit 7132ad5e81

View file

@ -85,7 +85,7 @@ public:
tracksel=tsRandom;
tskOurPlay=false;
if(cdfdopen=(cdfd=open(device,O_RDONLY | O_NONBLOCK))!=-1){
if((cdfdopen = (cdfd = open(device,O_RDONLY | O_NONBLOCK))) != -1) {
status_state=ssNoCD;
status_track=0;
status_pos=0;