fix warn: 'div' shadows a global declaration

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Imre Deak
2012-10-10 16:04:38 +03:00
committed by Daniel Vetter
parent 1a83c0990a
commit 6456e75f0d
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -541,7 +541,7 @@ void drmtest_permute_array(void *array, unsigned size,
void drmtest_progress(const char *header, uint64_t i, uint64_t total)
{
int div = 200;
int divider = 200;
if (i+1 >= total) {
fprintf(stderr, "\r%s100%%\n", header);
@@ -549,10 +549,10 @@ void drmtest_progress(const char *header, uint64_t i, uint64_t total)
}
if (total / 200 == 0)
div = 1;
divider = 1;
/* only bother updating about every 0.5% */
if (i % (total / div) == 0 || i+1 >= total) {
if (i % (total / divider) == 0 || i+1 >= total) {
fprintf(stderr, "\r%s%3llu%%", header,
(long long unsigned) i * 100 / total);
}