diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2015-08-25 08:45:46 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2015-08-25 08:45:46 +0000 |
commit | 7ffa781dc39a7274692d8db11043b3a9e92e36ce (patch) | |
tree | 77653933e1c211dbec6c125da9ec5c28f9eeaa4e /pjlib/src/pjlib-test/pool.c | |
parent | 1b41ed3f7c9361106a585c1fe43d2338ab94cacc (diff) |
Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test/pool.c')
-rw-r--r-- | pjlib/src/pjlib-test/pool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pjlib/src/pjlib-test/pool.c b/pjlib/src/pjlib-test/pool.c index e3fbb555..581ccc69 100644 --- a/pjlib/src/pjlib-test/pool.c +++ b/pjlib/src/pjlib-test/pool.c @@ -190,20 +190,20 @@ static int drain_test(pj_size_t size, pj_size_t increment) /* Drain the pool until there's nothing left. */ while (freesize > 0) { - int size; + int size2; if (freesize > 255) - size = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) & + size2 = ((pj_rand() & 0x000000FF) + PJ_POOL_ALIGNMENT) & ~(PJ_POOL_ALIGNMENT - 1); else - size = (int)freesize; + size2 = (int)freesize; - p = pj_pool_alloc(pool, size); + p = pj_pool_alloc(pool, size2); if (!p) { status=-20; goto on_error; } - freesize -= size; + freesize -= size2; } /* Check that capacity is zero. */ |