diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-05 22:29:29 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-05 22:29:29 +0000 |
commit | b60e0fa97ed7ddc66d0ad6d00dfd78319bb6ad36 (patch) | |
tree | 50a5aed5fe1754b59f331e8c4337c8301121e1c7 /lib/easy.c | |
parent | 41c6f68d949bf6021fbf4d3488bbf38efa898816 (diff) |
David J Meyer's large file support.
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index 6274812dd..39c023209 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -202,6 +202,7 @@ CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...) func_T param_func = (func_T)0; long param_long = 0; void *param_obj = NULL; + off_t param_offset = 0; struct SessionHandle *data = curl; CURLcode ret=CURLE_FAILED_INIT; @@ -224,9 +225,14 @@ CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...) param_obj = va_arg(arg, void *); ret = Curl_setopt(data, tag, param_obj); } - else { + else if(tag < CURLOPTTYPE_OFF_T) { + /* This is a function pointer type */ param_func = va_arg(arg, func_T ); ret = Curl_setopt(data, tag, param_func); + } else { + /* This is an off_t type */ + param_offset = va_arg(arg, off_t); + ret = Curl_setopt(data, tag, param_offset); } va_end(arg); |