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) --- docs/examples/ftpuploadresume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/ftpuploadresume.c') diff --git a/docs/examples/ftpuploadresume.c b/docs/examples/ftpuploadresume.c index 8e6be977a..7c71add0c 100644 --- a/docs/examples/ftpuploadresume.c +++ b/docs/examples/ftpuploadresume.c @@ -122,10 +122,10 @@ int upload(CURL *curlhandle, const char * remotepath, const char * localpath, fseek(f, uploaded_len, SEEK_SET); - curl_easy_setopt(curlhandle, CURLOPT_FTPAPPEND, 1); + curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1); } else { /* no */ - curl_easy_setopt(curlhandle, CURLOPT_FTPAPPEND, 0); + curl_easy_setopt(curlhandle, CURLOPT_APPEND, 0); } r = curl_easy_perform(curlhandle); -- cgit v1.2.3