libimcv: Silence integer to pointer cast warnings

This commit is contained in:
Martin Willi
2014-06-04 15:53:07 +02:00
parent b7d71ff95d
commit 6b98c00285
2 changed files with 2 additions and 5 deletions
+1 -2
View File
@@ -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;
}
+1 -3
View File
@@ -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;
}