Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use type network_element_t instead of void*, and avoid unnecessary casts.
[simgrid.git] / src / surf / surf.c
index 5618234..3386132 100644 (file)
@@ -307,7 +307,7 @@ XBT_LOG_EXTERNAL_CATEGORY(surf_network_gtnets);
 
 static XBT_INLINE void routing_asr_host_free(void *p)
 {
-  network_element_t elm = (network_element_t)p;
+  network_element_t elm = p;
   free(elm->name);
   xbt_free(elm);
 }