diff options
author | Martin Willi <martin@revosec.ch> | 2014-01-08 12:17:01 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-04 15:53:07 +0200 |
commit | 6b98c002855cfca41c51f6d2d929f0554cdc94b1 (patch) | |
tree | b88da57e7c1c5a36e2d4aff861c5df98703c57d3 /src | |
parent | b7d71ff95d22eeb6cbd30da3ba83e5010ffa3d8a (diff) | |
download | strongswan-6b98c002855cfca41c51f6d2d929f0554cdc94b1.tar.bz2 strongswan-6b98c002855cfca41c51f6d2d929f0554cdc94b1.tar.xz |
libimcv: Silence integer to pointer cast warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/libimcv/imc/imc_agent.c | 3 | ||||
-rw-r--r-- | src/libimcv/imv/imv_agent.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/libimcv/imc/imc_agent.c b/src/libimcv/imc/imc_agent.c index 7dc3abddd..533151799 100644 --- a/src/libimcv/imc/imc_agent.c +++ b/src/libimcv/imc/imc_agent.c @@ -490,7 +490,7 @@ METHOD(imc_agent_t, reserve_additional_ids, TNC_Result, count--; /* store the scalar value in the pointer */ - pointer = (void*)id; + pointer = (void*)(uintptr_t)id; this->additional_ids->insert_last(this->additional_ids, pointer); DBG2(DBG_IMC, "IMC %u \"%s\" reserved additional ID %u", this->id, this->name, id); @@ -566,4 +566,3 @@ imc_agent_t *imc_agent_create(const char *name, return &this->public; } - diff --git a/src/libimcv/imv/imv_agent.c b/src/libimcv/imv/imv_agent.c index 5fc3f79c6..a46455d47 100644 --- a/src/libimcv/imv/imv_agent.c +++ b/src/libimcv/imv/imv_agent.c @@ -612,7 +612,7 @@ METHOD(imv_agent_t, reserve_additional_ids, TNC_Result, count--; /* store the scalar value in the pointer */ - pointer = (void*)id; + pointer = (void*)(uintptr_t)id; this->additional_ids->insert_last(this->additional_ids, pointer); DBG2(DBG_IMV, "IMV %u \"%s\" reserved additional ID %u", this->id, this->name, id); @@ -831,5 +831,3 @@ imv_agent_t *imv_agent_create(const char *name, return &this->public; } - - |