[xiph-commits] r7817 - icecast/trunk/libshout/src

brendan at motherfish-iii.xiph.org brendan at motherfish-iii.xiph.org
Mon Sep 20 21:53:17 PDT 2004


Author: brendan
Date: 2004-09-20 21:53:17 -0700 (Mon, 20 Sep 2004)
New Revision: 7817

Modified:
   icecast/trunk/libshout/src/shout.c
Log:
Use sock_error() wrapper instead of errno


Modified: icecast/trunk/libshout/src/shout.c
===================================================================
--- icecast/trunk/libshout/src/shout.c	2004-09-21 02:17:43 UTC (rev 7816)
+++ icecast/trunk/libshout/src/shout.c	2004-09-21 04:53:17 UTC (rev 7817)
@@ -855,7 +855,7 @@
 
 	rc = sock_read_bytes(self->socket, buf, sizeof(buf));
 
-	if (rc < 0 && sock_recoverable(errno))
+	if (rc < 0 && sock_recoverable(sock_error()))
 		return SHOUTERR_BUSY;
 	if (rc <= 0)
 		return SHOUTERR_SOCKET;



More information about the commits mailing list