Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
adapt the prototypes of the declaration to the prototypes of the definition
[simgrid.git] / src / xbt / xbt_queue.c
index a6f6278..8321246 100644 (file)
@@ -57,7 +57,7 @@ void xbt_queue_free(xbt_queue_t *queue) {
 }
 
 /** @brief Get the queue size */
 }
 
 /** @brief Get the queue size */
-unsigned long xbt_queue_length(xbt_queue_t queue) {
+unsigned long xbt_queue_length(const xbt_queue_t queue) {
    unsigned long res;
    xbt_mutex_lock(queue->mutex);
    res=xbt_dynar_length(queue->data);
    unsigned long res;
    xbt_mutex_lock(queue->mutex);
    res=xbt_dynar_length(queue->data);