summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2012-10-10 16:04:38 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-10 15:59:02 +0200
commit6456e75f0d91f35eb2e8c2b71629e2813b0aa72d (patch)
treee790b43cbe3bd2130c09e7c85707aced7ca5ef2b /lib
parent1a83c0990af469a0559002d4c2e9f99333edc996 (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/drmtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index a699d072..125bfe91 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -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);
}