mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Georg Horn's and my fixes to make it compile with 7.7
This commit is contained in:
parent
794d08a728
commit
34efa74a59
@ -252,19 +252,19 @@ CODE:
|
|||||||
switch (option & CURLINFO_TYPEMASK) {
|
switch (option & CURLINFO_TYPEMASK) {
|
||||||
case CURLINFO_STRING: {
|
case CURLINFO_STRING: {
|
||||||
char * value = (char *)SvPV(ST(2), PL_na);
|
char * value = (char *)SvPV(ST(2), PL_na);
|
||||||
RETVAL = curl_getinfo(curl, option, &value);
|
RETVAL = curl_easy_getinfo(curl, option, &value);
|
||||||
sv_setpv(ST(2), value);
|
sv_setpv(ST(2), value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CURLINFO_LONG: {
|
case CURLINFO_LONG: {
|
||||||
long value = (long)SvIV(ST(2));
|
long value = (long)SvIV(ST(2));
|
||||||
RETVAL = curl_getinfo(curl, option, &value);
|
RETVAL = curl_easy_getinfo(curl, option, &value);
|
||||||
sv_setiv(ST(2), value);
|
sv_setiv(ST(2), value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CURLINFO_DOUBLE: {
|
case CURLINFO_DOUBLE: {
|
||||||
double value = (double)SvNV(ST(2));
|
double value = (double)SvNV(ST(2));
|
||||||
RETVAL = curl_getinfo(curl, option, &value);
|
RETVAL = curl_easy_getinfo(curl, option, &value);
|
||||||
sv_setnv(ST(2), value);
|
sv_setnv(ST(2), value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user