From: Martin Willi Date: Wed, 12 Sep 2012 10:02:11 +0000 (+0200) Subject: Use uintptr_t in mem pool to avoid compiler warning if sizeof(void*) != sizeof(int) X-Git-Tag: 5.0.1~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b96503e136215b7f23c0c65fe09ccd8e26c57a6;p=thirdparty%2Fstrongswan.git Use uintptr_t in mem pool to avoid compiler warning if sizeof(void*) != sizeof(int) --- diff --git a/src/libhydra/attributes/mem_pool.c b/src/libhydra/attributes/mem_pool.c index 1c420318f3..ac85ab5363 100644 --- a/src/libhydra/attributes/mem_pool.c +++ b/src/libhydra/attributes/mem_pool.c @@ -268,7 +268,7 @@ static int get_existing(private_mem_pool_t *this, identification_t *id, static int get_new(private_mem_pool_t *this, identification_t *id) { entry_t *entry; - int offset = 0; + uintptr_t offset = 0; if (this->unused < this->size) { @@ -294,8 +294,7 @@ static int get_reassigned(private_mem_pool_t *this, identification_t *id) { enumerator_t *enumerator; entry_t *entry; - uintptr_t current; - int offset = 0; + uintptr_t current, offset = 0; enumerator = this->leases->create_enumerator(this->leases); while (enumerator->enumerate(enumerator, NULL, &entry))