mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,
curl_easy_perform): Mingw has 'stderr' as a macro?
This commit is contained in:
parent
d038b36c8f
commit
79ec50f77d
@ -1,5 +1,8 @@
|
|||||||
2006-02-21 David Shaw <dshaw@jabberwocky.com>
|
2006-02-21 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,
|
||||||
|
curl_easy_perform): Mingw has 'stderr' as a macro?
|
||||||
|
|
||||||
* curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,
|
* curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,
|
||||||
curl_easy_perform): Add CURLOPT_VERBOSE and CURLOPT_STDERR for
|
curl_easy_perform): Add CURLOPT_VERBOSE and CURLOPT_STDERR for
|
||||||
easier debugging.
|
easier debugging.
|
||||||
|
@ -92,7 +92,7 @@ curl_easy_init(void)
|
|||||||
|
|
||||||
handle=calloc(1,sizeof(CURL));
|
handle=calloc(1,sizeof(CURL));
|
||||||
if(handle)
|
if(handle)
|
||||||
handle->stderr=stderr;
|
handle->errors=stderr;
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ curl_easy_setopt(CURL *curl,CURLoption option,...)
|
|||||||
curl->flags.verbose=va_arg(ap,unsigned int);
|
curl->flags.verbose=va_arg(ap,unsigned int);
|
||||||
break;
|
break;
|
||||||
case CURLOPT_STDERR:
|
case CURLOPT_STDERR:
|
||||||
curl->stderr=va_arg(ap,FILE *);
|
curl->errors=va_arg(ap,FILE *);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* We ignore the huge majority of curl options */
|
/* We ignore the huge majority of curl options */
|
||||||
@ -175,7 +175,7 @@ curl_easy_perform(CURL *curl)
|
|||||||
proxy=getenv(HTTP_PROXY_ENV);
|
proxy=getenv(HTTP_PROXY_ENV);
|
||||||
|
|
||||||
if(curl->flags.verbose)
|
if(curl->flags.verbose)
|
||||||
fprintf(curl->stderr,"* HTTP proxy is \"%s\"\n",proxy?proxy:"null");
|
fprintf(curl->errors,"* HTTP proxy is \"%s\"\n",proxy?proxy:"null");
|
||||||
|
|
||||||
if(curl->flags.post)
|
if(curl->flags.post)
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ typedef struct
|
|||||||
void *file;
|
void *file;
|
||||||
char *postfields;
|
char *postfields;
|
||||||
unsigned int status;
|
unsigned int status;
|
||||||
FILE *stderr;
|
FILE *errors;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
unsigned int post:1;
|
unsigned int post:1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user