diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-11-19 08:20:13 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-11-19 08:20:13 +0000 |
commit | 79e4aee18549b520f73548ce6ef94f6d8d5350f2 (patch) | |
tree | e2fb28b9223f5aaf147fa8faecf8176e437b2070 | |
parent | 4d280124683a7d57cacb14729f964aec21eba7d7 (diff) |
cleaned up
-rw-r--r-- | docs/examples/persistant.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/docs/examples/persistant.c b/docs/examples/persistant.c index 7b880dee6..0a17031b8 100644 --- a/docs/examples/persistant.c +++ b/docs/examples/persistant.c @@ -10,26 +10,14 @@ #include <stdio.h> #include <unistd.h> - #include <curl/curl.h> -/* to make this work under windows, use the win32-functions from the - docs/examples/win32socket.c file as well */ - -/* This example REQUIRES libcurl 7.7 or later */ -#if (LIBCURL_VERSION_NUM < 0x070700) -#error Too old libcurl version, upgrade or stay away. -#endif - int main(int argc, char **argv) { CURL *curl; CURLcode res; -#ifdef MALLOCDEBUG - /* this sends all memory debug messages to a specified logfile */ - curl_memdebug("memdump"); -#endif + curl_global_init(CURL_GLOBAL_ALL); curl = curl_easy_init(); if(curl) { |