aboutsummaryrefslogtreecommitdiff
path: root/src/tool_getparam.c
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2012-07-04 12:54:21 +0200
committerGuenter Knauf <lists@gknw.net>2012-07-04 12:54:21 +0200
commit6388ac7dc1f531f4f94616e8e0a46a0cecde8315 (patch)
tree750af2ef14ba095a3ea90553abca266126436bcd /src/tool_getparam.c
parent304e24e2113d2a98d7a6fe851b2fc0a20ab0f1c9 (diff)
Renamed vars to avoid shadow global declaration.
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index c9c6198ff..4205f596a 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -824,9 +824,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
case 'J': /* --metalink */
{
#ifdef USE_METALINK
- int major, minor, patch;
- metalink_get_version(&major, &minor, &patch);
- if((major*10000)+(minor*100)+patch < CURL_REQ_LIBMETALINK_VERS) {
+ int mlmaj, mlmin, mlpatch;
+ metalink_get_version(&mlmaj, &mlmin, &mlpatch);
+ if((mlmaj*10000)+(mlmin*100)+mlpatch < CURL_REQ_LIBMETALINK_VERS) {
warnf(config,
"--metalink option cannot be used because the version of "
"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_MINOR,
CURL_REQ_LIBMETALINK_PATCH,
- major, minor, patch);
+ mlmaj, mlmin, mlpatch);
return PARAM_BAD_USE;
}
else