Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare swag as const when possible.
[simgrid.git] / src / xbt / swag.c
index 9d3af40..6bf90c0 100644 (file)
@@ -172,7 +172,7 @@ void *xbt_swag_extract(xbt_swag_t swag)
  * \param swag a swag
  * \return the number of objects in \a swag
  */
  * \param swag a swag
  * \return the number of objects in \a swag
  */
-inline int xbt_swag_size(xbt_swag_t swag)
+inline int xbt_swag_size(const_xbt_swag_t swag)
 {
   return (swag->count);
 }
 {
   return (swag->count);
 }