raop: Fix gcc-7 warnings, EWOULDBLOCK 73/189373/1
authorPeter Meerwald-Stadler <pmeerw@pmeerw.net>
Wed, 6 Sep 2017 09:05:29 +0000 (11:05 +0200)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 17 Sep 2018 08:42:06 +0000 (17:42 +0900)
commita7cb8ebec5e32498cbd8c900748d563ecb2f3386
tree12295851a53b46b5b56325447084a35e92e24c59
parent37c6f725e0505126545e006ae5f6deb7205a19c0
raop: Fix gcc-7 warnings, EWOULDBLOCK

EAGAIN is used allover the code rather than EWOULDBLOCK
POSIX allows EAGAIN and EWOULDBLOCK to have the same value (and in fact it is)
don't check for EWOULDBLOCK

modules/raop/raop-client.c: In function ‘send_udp_audio_packet’:
modules/raop/raop-client.c:473:41: warning: logical ‘or’ of equal expressions [-Wlogical-op]
     if (written < 0 && (errno == EAGAIN || errno == EWOULDBLOCK)) {
                                         ^~
modules/raop/raop-client.c: In function ‘resend_udp_audio_packets’:
modules/raop/raop-client.c:528:45: warning: logical ‘or’ of equal expressions [-Wlogical-op]
         if (written < 0 && (errno == EAGAIN || errno == EWOULDBLOCK)) {
                                             ^~

Change-Id: Ifbad3e3cefdf66e59053853894ff51e74d19a3a4
Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
src/modules/raop/raop-client.c
src/pulsecore/iochannel.c