aboutsummaryrefslogtreecommitdiff
path: root/lib/base64.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-08-30 20:34:57 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-08-30 20:34:57 +0000
commit9f44a95522162c0f4a61093efe1bf1f58b087358 (patch)
treeea90ca762a9a7a4f6772cb44b23e994b41f32644 /lib/base64.c
parent4b60c3e9d3d284125857ecf90b1910db5ba318a2 (diff)
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)
Diffstat (limited to 'lib/base64.c')
-rw-r--r--lib/base64.c6
1 files changed, 3 insertions, 3 deletions
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