curl-library
sws.c patch
Date: Fri, 16 Apr 2004 23:07:21 +0200
Some patches to make sws.c compile under MingW/MSVC is
attached. And some cosmetic fixes.
BTW. Why is NDEBUG defined for CURLDEBUG? This effectively
make curlassert() a no-op. Patch:
--- CVS-latest/lib/setup.h Fri Mar 26 15:47:46 2004
+++ lib/setup.h Fri Apr 16 18:41:26 2004
@@ -134,7 +134,7 @@
#endif
#if defined(CURLDEBUG) && defined(HAVE_ASSERT_H)
-#define NDEBUG
#define curlassert(x) assert(x)
#else
/* does nothing without CURLDEBUG defined */
And a little enhancement; nice to know why connect() fails:
--- CVS-latest/lib/connect.c Tue Apr 13 09:16:26 2004
+++ lib/connect.c Fri Apr 16 20:11:38 2004
@@ -696,7 +696,7 @@
if (sockfd == CURL_SOCKET_BAD) {
/* no good connect was made */
*sockconn = -1;
- failf(data, "Connect failed");
+ failf(data, "Connect failed; %s", Curl_strerror(conn,Curl_ourerrno()));
return CURLE_COULDNT_CONNECT;
}
--gv
- application/octet-stream attachment: sws.c.diff