mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
Renamed vars to avoid shadow global declaration.
This commit is contained in:
parent
304e24e211
commit
6388ac7dc1
@ -824,9 +824,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
case 'J': /* --metalink */
|
case 'J': /* --metalink */
|
||||||
{
|
{
|
||||||
#ifdef USE_METALINK
|
#ifdef USE_METALINK
|
||||||
int major, minor, patch;
|
int mlmaj, mlmin, mlpatch;
|
||||||
metalink_get_version(&major, &minor, &patch);
|
metalink_get_version(&mlmaj, &mlmin, &mlpatch);
|
||||||
if((major*10000)+(minor*100)+patch < CURL_REQ_LIBMETALINK_VERS) {
|
if((mlmaj*10000)+(mlmin*100)+mlpatch < CURL_REQ_LIBMETALINK_VERS) {
|
||||||
warnf(config,
|
warnf(config,
|
||||||
"--metalink option cannot be used because the version of "
|
"--metalink option cannot be used because the version of "
|
||||||
"the linked libmetalink library is too old. "
|
"the linked libmetalink library is too old. "
|
||||||
@ -834,7 +834,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
CURL_REQ_LIBMETALINK_MAJOR,
|
CURL_REQ_LIBMETALINK_MAJOR,
|
||||||
CURL_REQ_LIBMETALINK_MINOR,
|
CURL_REQ_LIBMETALINK_MINOR,
|
||||||
CURL_REQ_LIBMETALINK_PATCH,
|
CURL_REQ_LIBMETALINK_PATCH,
|
||||||
major, minor, patch);
|
mlmaj, mlmin, mlpatch);
|
||||||
return PARAM_BAD_USE;
|
return PARAM_BAD_USE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user