cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Patch to get ip address last requested

From: Jason Pump <jpump_at_mindspring.com>
Date: Wed, 20 Jul 2005 10:05:03 -0700

Ok, thanks, I did use gcc to test. I will contribute a new patch in a
week or so.

Jason

Gisle Vanem wrote:

> "Jason Pump" wrote:
>
>> + if ( !cachedIp ) return CURLE_FAILED_INIT;
>> +
>> + struct Curl_multi *multi=(struct Curl_multi *)multi_handle;
>> + struct SessionHandle *easy=(struct SessionHandle *)easy_handle;
>
>
> It may be a good feature you've contribuited. But don't use
> C++ features like this. Only gcc supports this AFAIK. Define
> variables at top of scope.
>
> --gv
Received on 2005-07-20