diff options
author | Martin Willi <martin@revosec.ch> | 2012-09-12 12:02:11 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-09-12 13:19:52 +0200 |
commit | 5b96503e136215b7f23c0c65fe09ccd8e26c57a6 (patch) | |
tree | b9eb12fd4306f8a6b302f786da717fcd50385331 /src | |
parent | 979027ae045f9e4ef2cd5b4ca2df892f23e4f4b7 (diff) | |
download | strongswan-5b96503e136215b7f23c0c65fe09ccd8e26c57a6.tar.bz2 strongswan-5b96503e136215b7f23c0c65fe09ccd8e26c57a6.tar.xz |
Use uintptr_t in mem pool to avoid compiler warning if sizeof(void*) != sizeof(int)
Diffstat (limited to 'src')
-rw-r--r-- | src/libhydra/attributes/mem_pool.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libhydra/attributes/mem_pool.c b/src/libhydra/attributes/mem_pool.c index 1c420318f..ac85ab536 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)) |