From 9f44a95522162c0f4a61093efe1bf1f58b087358 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 30 Aug 2007 20:34:57 +0000 Subject: Renamed several libcurl error codes and options to make them more general and allow reuse by multiple protocols. Several unused error codes were removed. In all cases, macros were added to preserve source (and binary) compatibility with the old names. These macros are subject to removal at a future date, but probably not before 2009. An application can be tested to see if it is using any obsolete code by compiling it with the CURL_NO_OLDIES macro defined. Documented some newer error codes in libcurl-error(3) --- lib/base64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/base64.c') diff --git a/lib/base64.c b/lib/base64.c index 302d49885..912aaf050 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -137,7 +137,7 @@ size_t Curl_base64_decode(const char *src, unsigned char **outptr) * * Returns the length of the newly created base64 string. The third argument * is a pointer to an allocated area holding the base64 data. If something - * went wrong, -1 is returned. + * went wrong, 0 is returned. * */ size_t Curl_base64_encode(struct SessionHandle *data, @@ -265,7 +265,7 @@ int main(int argc, argv_item_t argv[], char **envp) handle = curl_easy_init(); if(handle == NULL) { fprintf(stderr, "Error: curl_easy_init failed\n"); - return 0; + return 1; } #endif data = (unsigned char *)suck(&dataLen); @@ -305,7 +305,7 @@ int main(int argc, argv_item_t argv[], char **envp) struct SessionHandle *handle = curl_easy_init(); if(handle == NULL) { fprintf(stderr, "Error: curl_easy_init failed\n"); - return 0; + return 1; } #endif -- cgit v1.2.3