aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-14 08:19:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-14 08:19:40 +0000
commite32641d412b82f3bbc42b5a6a454ec5c143588c5 (patch)
tree02d56d2427f39d7a0d9809ea7b5daacc3b263de2
parent1603f64771d09d43ef58bca455f5f18e4dc65cae (diff)
Added an empty win32_cleanup for non-windows systems to prevent compiler
warnings, changed the Curl_open() call as the second argument was never used anyway
-rw-r--r--lib/easy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 876b4935e..8355ed6b3 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -119,8 +119,9 @@ static CURLcode win32_init(void)
}
/* The Windows Sockets DLL is acceptable. Proceed. */
#else
+/* These functions exist merely to prevent compiler warnings */
static CURLcode win32_init(void) { return CURLE_OK; }
-#define win32_cleanup()
+static void win32_cleanup(void) { }
#endif
@@ -179,7 +180,7 @@ CURL *curl_easy_init(void)
curl_global_init(CURL_GLOBAL_DEFAULT);
/* We use curl_open() with undefined URL so far */
- res = Curl_open((CURL **)&data, NULL);
+ res = Curl_open((CURL **)&data);
if(res != CURLE_OK)
return NULL;