aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2017-08-28 23:54:25 +0200
committerDan Fandrich <dan@coneharvesters.com>2017-08-28 23:55:55 +0200
commit82604c500755d94ab2422edc5151e99972344104 (patch)
tree4f6ac13d78375531f4c2741180fe191f0d178325 /tests
parentd5d736726ca8b4da08809ced2b77baafd7031975 (diff)
unit1606: Fixed shadowed variable warning
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/unit1606.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/unit/unit1606.c b/tests/unit/unit1606.c
index df9c89ced..9da0b70b6 100644
--- a/tests/unit/unit1606.c
+++ b/tests/unit/unit1606.c
@@ -43,8 +43,7 @@ static void unit_stop(void)
curl_global_cleanup();
}
-static int runawhile(struct Curl_easy *easy,
- long time_limit,
+static int runawhile(long time_limit,
long speed_limit,
curl_off_t speed,
int dec)
@@ -75,16 +74,16 @@ static int runawhile(struct Curl_easy *easy,
}
UNITTEST_START
- fail_unless(runawhile(easy, 41, 41, 40, 0) == 41,
+ fail_unless(runawhile(41, 41, 40, 0) == 41,
"wrong low speed timeout");
- fail_unless(runawhile(easy, 21, 21, 20, 0) == 21,
+ fail_unless(runawhile(21, 21, 20, 0) == 21,
"wrong low speed timeout");
- fail_unless(runawhile(easy, 60, 60, 40, 0) == 60,
+ fail_unless(runawhile(60, 60, 40, 0) == 60,
"wrong log speed timeout");
- fail_unless(runawhile(easy, 50, 50, 40, 0) == 50,
+ fail_unless(runawhile(50, 50, 40, 0) == 50,
"wrong log speed timeout");
- fail_unless(runawhile(easy, 40, 40, 40, 0) == 99,
+ fail_unless(runawhile(40, 40, 40, 0) == 99,
"should not time out");
- fail_unless(runawhile(easy, 10, 50, 100, 2) == 36,
+ fail_unless(runawhile(10, 50, 100, 2) == 36,
"bad timeout");
UNITTEST_STOP