aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/esdaudio.c2
-rw-r--r--sockets.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/audio/esdaudio.c b/audio/esdaudio.c
index 05c030f..2226022 100644
--- a/audio/esdaudio.c
+++ b/audio/esdaudio.c
@@ -226,7 +226,7 @@ static int qesd_run_out (HWVoiceOut *hw)
esd->live = live - decr;
hw->rpos = esd->rpos;
if (esd->live > 0) {
- O("%s: signaling %d samples\n", esd->live);
+ O("%s: signaling %d samples\n", __FUNCTION__, esd->live);
audio_pt_unlock_and_signal (&esd->pt, AUDIO_FUNC);
}
else {
diff --git a/sockets.c b/sockets.c
index 87ee567..2e61d9a 100644
--- a/sockets.c
+++ b/sockets.c
@@ -50,7 +50,10 @@
do { _ret = (_cmd); } while ( _ret < 0 && WSAGetLastError() == WSAEINTR )
#else
# define QSOCKET_CALL(_ret,_cmd) \
- do { _ret = (_cmd); } while ( _ret < 0 && errno == EINTR )
+ do { \
+ errno = 0; \
+ do { _ret = (_cmd); } while ( _ret < 0 && errno == EINTR ); \
+ } while (0);
#endif
#ifdef _WIN32